Skip to content

Commit

Permalink
Add cargo clippy CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
ok300 committed Mar 20, 2024
1 parent 0afbe9c commit 03c7422
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions lib/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub struct Wallet {

impl Wallet {
pub fn init(mnemonic: String) -> Result<Arc<Wallet>> {
let a = 3;
let signer = SwSigner::new(&mnemonic, false)?;
let descriptor = singlesig_desc(
&signer,
Expand Down

0 comments on commit 03c7422

Please sign in to comment.