Skip to content

Commit

Permalink
fix: clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Roardom committed May 30, 2024
1 parent 30b9efb commit ae76b58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/announce.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ pub async fn announce(
} else {
// Insert the peer into the in-memory db
let mut old_peer: Option<Peer> = None;
let new_peer = torrent
let new_peer = *torrent
.peers
.entry(tracker::peer::Index {
user_id,
Expand Down Expand Up @@ -425,8 +425,7 @@ pub async fn announce(
updated_at: Utc::now(),
uploaded: queries.uploaded,
downloaded: queries.downloaded,
})
.clone();
});

is_visible = new_peer.is_visible;

Expand Down

0 comments on commit ae76b58

Please sign in to comment.