From ea8e031a3da5ca878691c4d1c62d440f52065f5b Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Thu, 20 May 2021 13:49:37 -0400 Subject: [PATCH] Remove extraneous conversion --- src/cache/disk.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/cache/disk.rs b/src/cache/disk.rs index 5ba5f74..6ee9ea4 100644 --- a/src/cache/disk.rs +++ b/src/cache/disk.rs @@ -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)); }