mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-17 12:01:23 +00:00
Merge master into stable-futures (#1325)
* Update parking_lot to v0.9 (#1300) Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Publish 0.13.1 (#1304) * Publish 0.13.1 * Update CHANGELOG.md Co-Authored-By: Toralf Wittner <tw@dtex.org> * Update some deps of core-derive (#1299) Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
@ -62,7 +62,7 @@ fn build_struct(ast: &DeriveInput, data_struct: &DataStruct) -> TokenStream {
|
||||
let substream_generic = {
|
||||
let mut n = "TSubstream".to_string();
|
||||
// Avoid collisions.
|
||||
while ast.generics.type_params().any(|tp| tp.ident.to_string() == n) {
|
||||
while ast.generics.type_params().any(|tp| tp.ident == n) {
|
||||
n.push('1');
|
||||
}
|
||||
let n = Ident::new(&n, name.span());
|
||||
|
Reference in New Issue
Block a user