diff --git a/justfile b/justfile new file mode 100644 index 0000000..4d395f7 --- /dev/null +++ b/justfile @@ -0,0 +1,33 @@ +default: + @just --list + +check: check-format check-clippy test + +fix: fix-format fix-clippy + +test: + cargo test --all-features + +check-format: + cargo fmt --all -- --check + +fix-format: + cargo fmt --all + +check-clippy: + cargo clippy --all-targets -- -D warnings + +fix-clippy: + cargo clippy --all-targets --fix --allow-dirty --allow-staged + +build: + cargo build --release + +clean: + cargo clean + +watch-test: + cargo watch -x test + +watch-check: + cargo watch -x "fmt --all -- --check" -x "clippy --all-targets -- -D warnings" -x test diff --git a/src/rpc.rs b/src/rpc.rs index 4b39bdd..4003cca 100644 --- a/src/rpc.rs +++ b/src/rpc.rs @@ -21,6 +21,7 @@ pub trait EthApiOverride { #[derive(Debug)] pub struct EthApiExt { + #[allow(dead_code)] // temporary until we implement the flashblocks API eth_api: Eth, } @@ -70,6 +71,6 @@ pub struct BaseApiExt {} #[async_trait] impl BaseApiServer for BaseApiExt { async fn status(&self, name: String) -> RpcResult { - Ok(Status { name: name.into() }) + Ok(Status { name }) } }