Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Sep 13, 2023
1 parent 02b8ad9 commit 9e0f078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ impl NetworkProcessor {
) {
loop {
let now = Instant::now();
self.process_poll_event(Some(timeout), |e| event_callback(e));
self.process_poll_event(Some(timeout), &mut event_callback);
if now.elapsed() > timeout {
break
}
Expand Down
2 changes: 1 addition & 1 deletion src/network/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl Poll {
break
}
Err(ref err) if err.kind() == ErrorKind::Interrupted => continue,
Err(ref err) => Err(err).expect("No error here"),
Err(ref err) => panic!("{}: No error here", err),
}
}
}
Expand Down

0 comments on commit 9e0f078

Please sign in to comment.