File tree Expand file tree Collapse file tree 5 files changed +43
-3
lines changed Expand file tree Collapse file tree 5 files changed +43
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Rust-Checks
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ branches : main
7
+
8
+ jobs :
9
+ fmt :
10
+ runs-on : ubuntu-24.04
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v3
14
+
15
+ - name : Install Rust toolchain
16
+ uses : ./.github/actions/install-rust-toolchain
17
+ with :
18
+ components : rustfmt
19
+
20
+ - uses : actions-rs/cargo@v1
21
+ with :
22
+ command : fmt
23
+ args : --all -- --check
24
+
25
+ clippy :
26
+ runs-on : ubuntu-24.04
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v3
30
+
31
+ - name : Install Rust toolchain
32
+ uses : ./.github/actions/install-rust-toolchain
33
+ with :
34
+ components : clippy
35
+
36
+ - uses : actions-rs/cargo@v1
37
+ with :
38
+ command : clippy
39
+ args : --all --all-targets -- -D warnings
Original file line number Diff line number Diff line change 2
2
// SPDX-License-Identifier: Apache-2.0, MIT
3
3
4
4
//! This is the top level documentation!
5
+ #![ allow( async_fn_in_trait) ]
5
6
6
7
pub mod account;
7
8
pub mod error;
Original file line number Diff line number Diff line change 1
1
// Copyright 2024 ChainSafe Systems
2
2
// SPDX-License-Identifier: Apache-2.0, MIT
3
3
4
- use crate :: store:: WalletStore ;
5
4
use crate :: error:: Error ;
5
+ use crate :: store:: WalletStore ;
6
6
use wasm_bindgen:: prelude:: * ;
7
7
8
8
#[ wasm_bindgen( typescript_custom_section) ]
Original file line number Diff line number Diff line change 1
1
// Copyright 2024 ChainSafe Systems
2
2
// SPDX-License-Identifier: Apache-2.0, MIT
3
3
4
- use crate :: store:: WalletStore ;
5
4
use crate :: error:: Error ;
5
+ use crate :: store:: WalletStore ;
6
6
7
7
/// A simple in-memory store for wallet data. Useful for testing
8
8
pub struct MemoryStore {
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ use webz_core::account::Account;
6
6
#[ wasm_bindgen_test]
7
7
fn test_account_from_seed ( ) {
8
8
let seed = [ 0 ; 32 ] ;
9
- let a = Account :: from_seed ( & seed, 0 ) . unwrap ( ) ;
9
+ let _a = Account :: from_seed ( & seed, 0 ) . unwrap ( ) ;
10
10
}
You can’t perform that action at this time.
0 commit comments