diff options
| author | tv <tv@krebsco.de> | 2026-10-26 21:56:20 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-26 21:56:20 +0100 |
| commit | f937094b9c585b0b1f1f404ee1f962d97dcc2e80 (patch) | |
| tree | 3c4e5ba952c6babc5fee757995f838ba2deb909b /src/swarm/relay.rs | |
| parent | 7dc2b728ca868ec7ed5f7b72eef43b0a0087ae04 (diff) | |
make clippy happy again
Diffstat (limited to 'src/swarm/relay.rs')
| -rw-r--r-- | src/swarm/relay.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/swarm/relay.rs b/src/swarm/relay.rs index 2fa5f5f..b1cc0a7 100644 --- a/src/swarm/relay.rs +++ b/src/swarm/relay.rs @@ -194,7 +194,7 @@ pub(crate) async fn pull_if_behind( pub(crate) fn pulled(state: &AppState, peer: &str) { { let mut pulling = state.pulling.lock_or_recover(); - if !pulling.current.as_ref().is_some_and(|(p, _)| p == peer) { + if pulling.current.as_ref().is_none_or(|(p, _)| p != peer) { return; } pulling.current = None; |
