mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
Clippyfy (#6341)
* Add clippy config and remove .cargo from gitignore * first fixes * Clippyfied * Add clippy CI job * comment out rusty-cachier * minor * fix ci * remove DAG from check-dependent-project * add DAG to clippy Co-authored-by: alvicsam <alvicsam@gmail.com>
This commit is contained in:
@@ -32,7 +32,7 @@ use tempfile::tempdir;
|
||||
|
||||
pub mod common;
|
||||
|
||||
static RUNTIMES: [&'static str; 4] = ["polkadot", "kusama", "westend", "rococo"];
|
||||
static RUNTIMES: [&str; 4] = ["polkadot", "kusama", "westend", "rococo"];
|
||||
|
||||
/// `benchmark block` works for all dev runtimes using the wasm executor.
|
||||
#[tokio::test]
|
||||
@@ -54,7 +54,7 @@ async fn build_chain(runtime: &str, base_path: &Path) -> Result<(), String> {
|
||||
let mut cmd = Command::new(cargo_bin("polkadot"))
|
||||
.stdout(process::Stdio::piped())
|
||||
.stderr(process::Stdio::piped())
|
||||
.args(["--chain", &runtime, "--force-authoring", "--alice"])
|
||||
.args(["--chain", runtime, "--force-authoring", "--alice"])
|
||||
.arg("-d")
|
||||
.arg(base_path)
|
||||
.arg("--no-hardware-benchmarks")
|
||||
@@ -77,7 +77,7 @@ async fn build_chain(runtime: &str, base_path: &Path) -> Result<(), String> {
|
||||
fn benchmark_block(runtime: &str, base_path: &Path, block: u32) -> Result<(), String> {
|
||||
// Invoke `benchmark block` with all options to make sure that they are valid.
|
||||
let status = Command::new(cargo_bin("polkadot"))
|
||||
.args(["benchmark", "block", "--chain", &runtime])
|
||||
.args(["benchmark", "block", "--chain", runtime])
|
||||
.arg("-d")
|
||||
.arg(base_path)
|
||||
.args(["--from", &block.to_string(), "--to", &block.to_string()])
|
||||
|
||||
Reference in New Issue
Block a user