Skip to content

Commit

Permalink
Cargo clippy warnings and update readme for standalone build
Browse files Browse the repository at this point in the history
  • Loading branch information
nepoche committed May 30, 2022
1 parent fee902e commit 5b3720e
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 24 deletions.
90 changes: 70 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ git clone [email protected]:webb-tools/protocol-substrate.git
git submodule update --init
```

Build the node in `release mode`:
Build the standalone node in `release mode`:

```bash
cargo build --release
cargo build --release -p webb-standalone-node
```

#### Troubleshooting for Apple Silicon users
Expand Down
2 changes: 1 addition & 1 deletion pallets/linkable-tree/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use std::sync::Arc;

use codec::{Decode, Encode};
use jsonrpc_core::{Error, ErrorCode, Result};
use jsonrpc_core::{Result};
use jsonrpc_derive::rpc;
use sp_api::ProvideRuntimeApi;
use sp_blockchain::HeaderBackend;
Expand Down
2 changes: 1 addition & 1 deletion pallets/mt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ pub mod pallet {
let default_zero = T::DefaultZeroElement::get();
temp_hashes.push(default_zero);
let mut temp_hash = default_zero.to_bytes().to_vec();
for i in 0..T::MaxTreeDepth::get() {
for _ in 0..T::MaxTreeDepth::get() {
temp_hash = T::Hasher::hash_two(&temp_hash, &temp_hash).unwrap();
temp_hashes.push(T::Element::from_vec(temp_hash.clone()));
}
Expand Down

0 comments on commit 5b3720e

Please sign in to comment.