Skip to content

Commit

Permalink
Add Eq
Browse files Browse the repository at this point in the history
  • Loading branch information
chevdor committed May 23, 2022
1 parent 113e0af commit feb0294
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/chain_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
Expand Down
2 changes: 1 addition & 1 deletion libs/wasm-loader/src/node_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion libs/wasm-loader/src/onchain_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<BlockRef>,
Expand Down
2 changes: 1 addition & 1 deletion libs/wasm-loader/src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit feb0294

Please sign in to comment.