Skip to content

Commit cc5004e

Browse files
committed
cargo clippy
1 parent 2ca4167 commit cc5004e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

anchor/network/src/discovery.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ impl Discovery {
312312
}
313313
}
314314
}
315-
_ => {}
315+
_ => {
316+
// TODO handle subnet queries
317+
}
316318
}
317319
None
318320
}

anchor/network/src/network.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async fn build_anchor_behaviour(
161161

162162
let discovery = {
163163
// Build and start the discovery sub-behaviour
164-
let mut discovery = Discovery::new(local_keypair.clone(), &network_config)
164+
let mut discovery = Discovery::new(local_keypair.clone(), network_config)
165165
.await
166166
.unwrap();
167167
// start searching for peers

0 commit comments

Comments
 (0)