From b4c3a33f2954514c64cfc151c80e47afff22b9de Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Mon, 2 Aug 2021 10:30:01 -0500 Subject: [PATCH] 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 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b886e19b..100fbdfcf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 -- 2.39.5