Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix clippy #864

Merged
merged 4 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ where
let _lock = submit_lock.lock().await;

let (solution, score) = match epm::fetch_snapshot_and_mine_solution::<T>(
&client.chain_api(),
client.chain_api(),
Some(block_hash),
config.solver,
round,
Expand Down
2 changes: 1 addition & 1 deletion src/epm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ where
targets.remove(&rm);
}

return Err(Error::Feasibility("Failed to pre-trim weight < T::MaxLength".to_string()));
Err(Error::Feasibility("Failed to pre-trim weight < T::MaxLength".to_string()))
}

/// Clone the state and trim it, so it get can be reverted.
Expand Down
2 changes: 1 addition & 1 deletion tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub fn run_polkadot_node(chain: Chain) -> (KillChildOnDrop, String) {
.stderr(process::Stdio::piped())
.args([
"--chain",
&chain_str,
chain_str,
"--tmp",
"--alice",
"--unsafe-force-node-key-generation",
Expand Down
Loading