mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 06:41:34 +00:00
NetworkBehaviour derive fix IntoProtocolsHandler/ProtocolsHandler::select ambiguity (#1466)
* NetworkBehaviour derive fix IntoProtocolsHandler/ProtocolsHandler::select ambiguity * Missing space misc/core-derive/src/lib.rs Co-Authored-By: Pierre Krieger <pierre.krieger1708@gmail.com> Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
@ -352,7 +352,7 @@ fn build_struct(ast: &DeriveInput, data_struct: &DataStruct) -> TokenStream {
|
|||||||
};
|
};
|
||||||
|
|
||||||
match out_handler {
|
match out_handler {
|
||||||
Some(h) => out_handler = Some(quote!{ #h.select(#builder) }),
|
Some(h) => out_handler = Some(quote!{ #into_protocols_handler::select(#h, #builder) }),
|
||||||
ref mut h @ None => *h = Some(builder),
|
ref mut h @ None => *h = Some(builder),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user