clippy::needless_pass_by_ref_mut
This commit is contained in:
parent
e06d2ae1a8
commit
6b72d18a7b
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ fn make_lengths<ByteBuf: AsRef<[u8]>>(
|
|||
Lengths::new(total_length, torrent.piece_length, None)
|
||||
}
|
||||
|
||||
fn ensure_file_length(file: &mut File, length: u64) -> anyhow::Result<()> {
|
||||
fn ensure_file_length(file: &File, length: u64) -> anyhow::Result<()> {
|
||||
Ok(file.set_len(length)?)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue