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:
Guillaume GONI
2020-02-24 16:56:36 +01:00
committed by GitHub
parent e84cbf278a
commit 4472840acf

View File

@ -352,7 +352,7 @@ fn build_struct(ast: &DeriveInput, data_struct: &DataStruct) -> TokenStream {
};
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),
}
}