Skip to content

chore: update rust toolchain, migrate to 2024 edition #3535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/subspace-networking/src/node_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ impl NodeRunner {
}
ref event @ SwarmEvent::ExpiredListenAddr { ref address, .. } => {
trace!(?event, "Local listener expired event.");
self.handle_remove_listeners(&[address.clone()]);
self.handle_remove_listeners(std::slice::from_ref(address));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommended by cargo clippy, clone() does not have side effects here.

Nitpick for future changes: usually we'd use std::slice; at the top of the file and slice::from_ref here.

}
SwarmEvent::ConnectionEstablished {
peer_id,
Expand Down