Skip to content

Commit

Permalink
Fail linter on #[warn(clippy::try_err)]
Browse files Browse the repository at this point in the history
Some heavily used macros are using ? directly on an Err. Using a return
is easier to read and removes hundreds of linter warnings.

https://rust-lang.github.io/rust-clippy/master/index.html#try_err
  • Loading branch information
jkczyz committed Aug 2, 2021
1 parent 58a4dc0 commit b4c3a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,4 @@ jobs:
rustup component add clippy
- name: Run default clippy linting
run: |
cargo clippy -- -Aclippy::erasing_op -Aclippy::never_loop -Aclippy::if_same_then_else
cargo clippy -- -Aclippy::erasing_op -Aclippy::never_loop -Aclippy::if_same_then_else -Dclippy::try_err

0 comments on commit b4c3a33

Please sign in to comment.