From 30ad25d1e99921e6d25642e209387b18e37e0f99 Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Wed, 25 Sep 2024 17:48:04 +0200 Subject: [PATCH] satisfy clippy --- src/error.rs | 12 +++--------- src/util.rs | 1 + 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/error.rs b/src/error.rs index 31bb719..2da2857 100644 --- a/src/error.rs +++ b/src/error.rs @@ -101,9 +101,7 @@ pub enum PartialReason { impl MinaMeshError { pub fn error_code(&self) -> u8 { - match self { - _ => unimplemented!(), - } + unimplemented!(); } pub fn description(&self) -> String { @@ -114,15 +112,11 @@ impl MinaMeshError { } pub fn is_retriable(&self) -> bool { - match self { - _ => unimplemented!(), - } + unimplemented!(); } pub fn context(&self) -> Option { - match self { - _ => unimplemented!(), - } + unimplemented!(); } } diff --git a/src/util.rs b/src/util.rs index 5256e7a..27a233b 100644 --- a/src/util.rs +++ b/src/util.rs @@ -35,6 +35,7 @@ impl Wrapper> { // 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 {