Remove extraneous conversion
This commit is contained in:
parent
7f16e697e6
commit
ea8e031a3d
1 changed files with 1 additions and 5 deletions
6
src/cache/disk.rs
vendored
6
src/cache/disk.rs
vendored
|
@ -175,11 +175,7 @@ async fn db_listener(
|
||||||
|
|
||||||
let mut size_freed = 0;
|
let mut size_freed = 0;
|
||||||
for item in items {
|
for item in items {
|
||||||
// Can't be helped, SQLite doesn't support unsigned integers
|
size_freed += item.size as u64;
|
||||||
#[allow(clippy::cast_sign_loss)]
|
|
||||||
{
|
|
||||||
size_freed += item.size as u64;
|
|
||||||
}
|
|
||||||
tokio::spawn(remove_file(item.id));
|
tokio::spawn(remove_file(item.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue