Fail linter on #[warn(clippy::try_err)]

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
This commit is contained in:
Jeffrey Czyz 2021-08-02 10:30:01 -05:00
parent 58a4dc0ef4
commit b4c3a33f29
No known key found for this signature in database
GPG key ID: 3A4E08275D5E96D2

View file

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