Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoticTempest committed Nov 14, 2022
1 parent 81f79bf commit 3868d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions workspaces/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ impl<T> Execution<T> {
self.into_result().unwrap()
}

#[allow(clippy::result_large_err)]
pub fn into_result(self) -> Result<T, ExecutionFailure> {
self.details.into_result()?;
Ok(self.result)
Expand Down Expand Up @@ -194,6 +195,7 @@ impl ExecutionFinalResult {
}

/// Converts this object into a [`Result`] holding either [`ExecutionSuccess`] or [`ExecutionFailure`].
#[allow(clippy::result_large_err)]
pub fn into_result(self) -> Result<ExecutionSuccess, ExecutionFailure> {
match self.status {
FinalExecutionStatus::SuccessValue(value) => Ok(ExecutionResult {
Expand Down
2 changes: 1 addition & 1 deletion workspaces/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl fmt::Debug for CryptoHash {

impl fmt::Display for CryptoHash {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
fmt::Display::fmt(&to_base58(&self.0), f)
fmt::Display::fmt(&to_base58(self.0), f)
}
}

Expand Down

0 comments on commit 3868d96

Please sign in to comment.