Remove extraneous conversion

This commit is contained in:
Edward Shen 2021-05-20 13:49:37 -04:00
parent 7f16e697e6
commit ea8e031a3d
Signed by: edward
GPG key ID: 19182661E818369F

6
src/cache/disk.rs vendored
View file

@ -175,11 +175,7 @@ async fn db_listener(
let mut size_freed = 0;
for item in items {
// Can't be helped, SQLite doesn't support unsigned integers
#[allow(clippy::cast_sign_loss)]
{
size_freed += item.size as u64;
}
size_freed += item.size as u64;
tokio::spawn(remove_file(item.id));
}