From 03c742287b3ea98fd0e6948ce564f6976aeeba2d Mon Sep 17 00:00:00 2001 From: ok300 <106775972+ok300@users.noreply.github.com> Date: Wed, 20 Mar 2024 13:31:13 +0100 Subject: [PATCH] Add cargo clippy CI step --- .github/workflows/main.yml | 12 ++++++++++++ lib/src/wallet.rs | 1 + 2 files changed, 13 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fe7a05148..8d8576de3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,3 +27,15 @@ jobs: cargo fmt -- --check cd ../cli cargo fmt -- --check + + clippy: + name: Cargo Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check Rust Clippy + run: | + cd lib + cargo clippy -- -D warnings + cd ../cli + cargo clippy -- -D warnings \ No newline at end of file diff --git a/lib/src/wallet.rs b/lib/src/wallet.rs index 6a6595ae2..5d986819e 100644 --- a/lib/src/wallet.rs +++ b/lib/src/wallet.rs @@ -43,6 +43,7 @@ pub struct Wallet { impl Wallet { pub fn init(mnemonic: String) -> Result> { + let a = 3; let signer = SwSigner::new(&mnemonic, false)?; let descriptor = singlesig_desc( &signer,