From 9efc950af59fd193f194a348353abd773325cf80 Mon Sep 17 00:00:00 2001 From: Christopher Berner Date: Sat, 16 Sep 2023 20:16:05 -0700 Subject: [PATCH 1/2] Fix Clippy warnings --- src/db.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.rs b/src/db.rs index e0a20cd7..0d9f95c3 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1116,7 +1116,7 @@ mod test { match err { DatabaseError::Storage(StorageError::Io(err)) if err.kind() == ErrorKind::NotFound => {} - err => panic!("Unexpected error for empty file: {}", err), + err => panic!("Unexpected error for empty file: {err}"), } } @@ -1129,7 +1129,7 @@ mod test { match err { DatabaseError::Storage(StorageError::Io(err)) if err.kind() == ErrorKind::InvalidData => {} - err => panic!("Unexpected error for empty file: {}", err), + err => panic!("Unexpected error for empty file: {err}"), } } } From ce5516c610f6694a38c926244ffdfa9b650972d2 Mon Sep 17 00:00:00 2001 From: Christopher Berner Date: Sat, 16 Sep 2023 20:15:20 -0700 Subject: [PATCH 2/2] Fail CI on Clippy warnings --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 088ae5a4..94f018af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,7 @@ jobs: run: just build test - name: Clippy - run: cargo clippy --all --all-targets + run: cargo clippy --all --all-targets -- -Dwarnings - name: Format run: cargo fmt --all -- --check