From 671b636f479f641d79a54dd775af68283601874c Mon Sep 17 00:00:00 2001 From: Cyril Plisko Date: Tue, 8 Aug 2023 11:13:07 +0300 Subject: [PATCH] clippy::unnecessary_mut_passed --- crates/librqbit/src/torrent_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/librqbit/src/torrent_manager.rs b/crates/librqbit/src/torrent_manager.rs index a77d08c..d3826e8 100644 --- a/crates/librqbit/src/torrent_manager.rs +++ b/crates/librqbit/src/torrent_manager.rs @@ -237,7 +237,7 @@ impl TorrentManager { continue; } let now = Instant::now(); - if let Err(err) = ensure_file_length(&mut file.lock(), length) { + if let Err(err) = ensure_file_length(&file.lock(), length) { warn!( "Error setting length for file {:?} to {}: {:#?}", name, length, err