Skip to content

Commit 3fb51ae

Browse files
happy clippy
1 parent 7f680b7 commit 3fb51ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iroh-dns-server/src/store/signed_packets.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl SignedPacketStore {
8181

8282
pub async fn get(&self, key: &PublicKeyBytes) -> Result<Option<SignedPacket>> {
8383
let db = self.db.clone();
84-
let key = key.clone();
84+
let key = *key;
8585
let res = tokio::task::spawn_blocking(move || {
8686
let tx = db.begin_read()?;
8787
let table = tx.open_table(SIGNED_PACKETS_TABLE)?;
@@ -93,7 +93,7 @@ impl SignedPacketStore {
9393

9494
pub async fn remove(&self, key: &PublicKeyBytes) -> Result<bool> {
9595
let db = self.db.clone();
96-
let key = key.clone();
96+
let key = *key;
9797
tokio::task::spawn_blocking(move || {
9898
let tx = db.begin_write()?;
9999
let updated = {

0 commit comments

Comments
 (0)