Skip to content

Commit

Permalink
fix: clippy after merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksuss committed Oct 17, 2023
1 parent b5624c8 commit 7b33d27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion workspaces/src/error/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl std::error::Error for Error {

impl<T> From<PoisonError<T>> for Error {
fn from(value: PoisonError<T>) -> Self {
Error::custom(ErrorKind::Other, value.to_string())
Self::custom(ErrorKind::Other, value.to_string())
}
}

Expand Down
3 changes: 1 addition & 2 deletions workspaces/src/types/gas_meter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ impl GasMeter {

/// Reset the gas consumed to 0.
pub fn reset(&self) -> Result<()> {
let mut meter = self.gas.lock()?;
*meter = Gas::from_gas(0);
*self.gas.lock()? = Gas::from_gas(0);
Ok(())
}
}

0 comments on commit 7b33d27

Please sign in to comment.