Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-maron committed Jun 10, 2024
1 parent 46321a5 commit 4ee374a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cdn-broker/src/connections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl Connections {
let differences = (added.copied().collect(), removed.copied().collect());

// Set the previous to the new one
*previous = now.clone();
previous.clone_from(&now);

// Return the differences
differences
Expand Down
2 changes: 1 addition & 1 deletion cdn-broker/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ async fn inject_brokers<B: Protocol, U: Protocol>(
// Create a map of our users
let mut user_map = DirectMap::new(identifier.clone());
for user in broker.connected_users {
user_map.insert(Arc::from(user.public_key), identifier.clone());
user_map.insert(user.public_key, identifier.clone());
}

// Sync the map to the broker under test
Expand Down

0 comments on commit 4ee374a

Please sign in to comment.