We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97c302d commit 43e194bCopy full SHA for 43e194b
crates/libtortillas/src/torrent/actor.rs
@@ -299,10 +299,10 @@ impl TorrentActor {
299
if let PieceStorageStrategy::Disk(path) = &self.piece_storage {
300
let mut path = path.clone();
301
path.push(format!("{hash}.piece"));
302
- return Ok(path.to_path_buf());
+ Ok(path.to_path_buf())
303
} else {
304
unreachable!()
305
- };
+ }
306
}
307
308
0 commit comments