Skip to content

Commit 43e194b

Browse files
committed
chore: Fix clippy errors
1 parent 97c302d commit 43e194b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/libtortillas/src/torrent/actor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,10 @@ impl TorrentActor {
299299
if let PieceStorageStrategy::Disk(path) = &self.piece_storage {
300300
let mut path = path.clone();
301301
path.push(format!("{hash}.piece"));
302-
return Ok(path.to_path_buf());
302+
Ok(path.to_path_buf())
303303
} else {
304304
unreachable!()
305-
};
305+
}
306306
}
307307
}
308308

0 commit comments

Comments
 (0)