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 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]