From d04497cd10f7eb1965f8208f0d0881528c4fc9fa Mon Sep 17 00:00:00 2001 From: Ryan Phillips Date: Mon, 29 Nov 2021 10:11:27 -0600 Subject: [PATCH 1/2] fixes clippy lint in init.rs --- conmon-rs/server/src/init.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/conmon-rs/server/src/init.rs b/conmon-rs/server/src/init.rs index 4f3ebc3dc5..f1c2a3cd9a 100644 --- a/conmon-rs/server/src/init.rs +++ b/conmon-rs/server/src/init.rs @@ -76,9 +76,7 @@ mod tests { use tempfile::tempfile; fn new_sut(mock: MockInitImpl) -> Init { - let mut sut = Init::::default(); - sut.imp = mock; - sut + Init:: { imp: mock } } #[test] From 0dfd652c55128e49670d4dc63dd2ba49b4245ba5 Mon Sep 17 00:00:00 2001 From: Ryan Phillips Date: Mon, 29 Nov 2021 10:17:19 -0600 Subject: [PATCH 2/2] add all targets --- .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 9b3c4f4154..6f2def5cd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,7 +74,7 @@ jobs: override: true components: clippy, rustfmt - name: Clippy Lint - run: cargo clippy --all -- -D warnings + run: cargo clippy --all-targets -- -D warnings lint-rustfmt: runs-on: ubuntu-latest