Skip to content

Commit

Permalink
Merge pull request #72 from rphillips/fix_lint
Browse files Browse the repository at this point in the history
fixes clippy lint in init.rs
  • Loading branch information
haircommander authored Nov 29, 2021
2 parents e69923b + 0dfd652 commit e6084da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions conmon-rs/server/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ mod tests {
use tempfile::tempfile;

fn new_sut(mock: MockInitImpl) -> Init<MockInitImpl> {
let mut sut = Init::<MockInitImpl>::default();
sut.imp = mock;
sut
Init::<MockInitImpl> { imp: mock }
}

#[test]
Expand Down

0 comments on commit e6084da

Please sign in to comment.