Skip to content

Commit 5b3720e

Browse files
committed
Cargo clippy warnings and update readme for standalone build
1 parent fee902e commit 5b3720e

File tree

4 files changed

+74
-24
lines changed

4 files changed

+74
-24
lines changed

Cargo.lock

Lines changed: 70 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ git clone git@github.com:webb-tools/protocol-substrate.git
8686
git submodule update --init
8787
```
8888

89-
Build the node in `release mode`:
89+
Build the standalone node in `release mode`:
9090

9191
```bash
92-
cargo build --release
92+
cargo build --release -p webb-standalone-node
9393
```
9494

9595
#### Troubleshooting for Apple Silicon users

pallets/linkable-tree/rpc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use std::sync::Arc;
44

55
use codec::{Decode, Encode};
6-
use jsonrpc_core::{Error, ErrorCode, Result};
6+
use jsonrpc_core::{Result};
77
use jsonrpc_derive::rpc;
88
use sp_api::ProvideRuntimeApi;
99
use sp_blockchain::HeaderBackend;

pallets/mt/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ pub mod pallet {
338338
let default_zero = T::DefaultZeroElement::get();
339339
temp_hashes.push(default_zero);
340340
let mut temp_hash = default_zero.to_bytes().to_vec();
341-
for i in 0..T::MaxTreeDepth::get() {
341+
for _ in 0..T::MaxTreeDepth::get() {
342342
temp_hash = T::Hasher::hash_two(&temp_hash, &temp_hash).unwrap();
343343
temp_hashes.push(T::Element::from_vec(temp_hash.clone()));
344344
}

0 commit comments

Comments
 (0)