Skip to content

Commit

Permalink
satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Sep 25, 2024
1 parent 06c8c51 commit 30ad25d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ pub enum PartialReason {

impl MinaMeshError {
pub fn error_code(&self) -> u8 {
match self {
_ => unimplemented!(),
}
unimplemented!();
}

pub fn description(&self) -> String {
Expand All @@ -114,15 +112,11 @@ impl MinaMeshError {
}

pub fn is_retriable(&self) -> bool {
match self {
_ => unimplemented!(),
}
unimplemented!();
}

pub fn context(&self) -> Option<String> {
match self {
_ => unimplemented!(),
}
unimplemented!();
}
}

Expand Down
1 change: 1 addition & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ impl Wrapper<Option<serde_json::Value>> {
// cspell:disable-next-line
const DEFAULT_TOKEN_ID: &str = "wSHV2S4qX9jFsLjQo8r1BsMLH2ZRKsZx6EJd1sbozGPieEC4Jf";

#[allow(clippy::to_string_trait_impl)]
impl ToString for Wrapper<&PartialBlockIdentifier> {
fn to_string(&self) -> String {
match &self.0.hash {
Expand Down

0 comments on commit 30ad25d

Please sign in to comment.