diff --git a/justfile b/justfile index 34f50dd..58f538b 100644 --- a/justfile +++ b/justfile @@ -36,18 +36,18 @@ demos: ./run-all.sh # Run rustfmt -_fmt: +fmt: cargo +nightly fmt --all # Run clippy -_clippy: +clippy: cargo +nightly clippy --all-features --all-targets -_deny: +deny: cargo deny check # Run checks such as clippy, rustfmt, etc... -check: _clippy _fmt _deny +check: clippy fmt # Minor bump, can be used once the release is ready bump: diff --git a/lib/src/chain_info.rs b/lib/src/chain_info.rs index bf567aa..2d5973d 100644 --- a/lib/src/chain_info.rs +++ b/lib/src/chain_info.rs @@ -3,7 +3,7 @@ use std::{fmt::Display, str::FromStr}; use wasm_loader::NodeEndpoint; use crate::chain_urls::get_chain_urls; -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Eq)] pub enum EndpointType { Http, WesbSocket, diff --git a/lib/src/types.rs b/lib/src/types.rs index 2737f1b..6804ef1 100644 --- a/lib/src/types.rs +++ b/lib/src/types.rs @@ -6,7 +6,7 @@ use std::{fmt::Display, str::FromStr}; /// if we filter on call, we may want to also filter on events, constants /// etc... and that becomes likely too complex to be comfortable and useful // when using the cli vs using json and filtering with jq. -#[derive(Debug, PartialEq, Default)] +#[derive(Debug, PartialEq, Eq, Default)] pub struct Filter { pub module: String, pub call: Option, diff --git a/libs/wasm-loader/src/node_endpoint.rs b/libs/wasm-loader/src/node_endpoint.rs index 0cf3e53..bbd30a5 100644 --- a/libs/wasm-loader/src/node_endpoint.rs +++ b/libs/wasm-loader/src/node_endpoint.rs @@ -2,7 +2,7 @@ use std::str::FromStr; use crate::error::WasmLoaderError; /// A [`NodeEndpoint`] can be either `Http` or `WebSocket`. -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub enum NodeEndpoint { Http(String), WebSocket(String), diff --git a/libs/wasm-loader/src/onchain_block.rs b/libs/wasm-loader/src/onchain_block.rs index 689047e..31d9dd3 100644 --- a/libs/wasm-loader/src/onchain_block.rs +++ b/libs/wasm-loader/src/onchain_block.rs @@ -3,7 +3,7 @@ use std::str::FromStr; pub type BlockRef = String; // TODO: to change /// This structure points to a node url and an optional block reference. -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub struct OnchainBlock { pub endpoint: NodeEndpoint, pub block_ref: Option, diff --git a/libs/wasm-loader/src/source.rs b/libs/wasm-loader/src/source.rs index 85ca100..e8b5e73 100644 --- a/libs/wasm-loader/src/source.rs +++ b/libs/wasm-loader/src/source.rs @@ -7,7 +7,7 @@ use std::{ use crate::{NodeEndpoint, OnchainBlock}; /// The source of the wasm. It can come from the local file system (`File`) or from a chain (`Chain`). -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub enum Source { File(PathBuf), Chain(OnchainBlock),