Skip to content

Commit b4c3a33

Browse files
committed
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
1 parent 58a4dc0 commit b4c3a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,4 +262,4 @@ jobs:
262262
rustup component add clippy
263263
- name: Run default clippy linting
264264
run: |
265-
cargo clippy -- -Aclippy::erasing_op -Aclippy::never_loop -Aclippy::if_same_then_else
265+
cargo clippy -- -Aclippy::erasing_op -Aclippy::never_loop -Aclippy::if_same_then_else -Dclippy::try_err

0 commit comments

Comments
 (0)