We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 426c5b2 commit 262172cCopy full SHA for 262172c
.github/workflows/build.yml
@@ -184,3 +184,23 @@ jobs:
184
[ "$(diff lightning-c-bindings/include/lightningpp.hpp.sorted lightning-c-bindings/include/lightningpp.hpp.new.sorted)" != "" ] && exit 3
185
git diff --exit-code
186
fi
187
+
188
+ linting:
189
+ runs-on: ubuntu-latest
190
+ env:
191
+ TOOLCHAIN: 1.39.0
192
+ steps:
193
+ - name: Checkout source code
194
+ uses: actions/checkout@v2
195
+ - name: Install Rust ${{ env.TOOLCHAIN }} toolchain
196
+ uses: actions-rs/toolchain@v1
197
+ with:
198
+ toolchain: ${{ env.TOOLCHAIN }}
199
+ override: true
200
+ profile: minimal
201
+ - name: Install clippy
202
+ run: |
203
+ rustup component add clippy
204
+ - name: Run default clippy linting
205
206
+ cargo clippy -- -Aclippy::erasing_op -Aclippy::never_loop -Aclippy::if_same_then_else
0 commit comments