Skip to content

Commit

Permalink
fix(law): linter impl From unstead of into
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Mar 24, 2023
1 parent 9a23033 commit 49bc80c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/cw-law-stone/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ pub enum UriError {
IncompatibleQuery,
}

impl Into<StdError> for ContractError {
fn into(self) -> StdError {
match self {
impl From<ContractError> for StdError {
fn from(value: ContractError) -> Self {
match value {
Std(e) => e,
_ => StdError::generic_err(self.to_string()),
_ => StdError::generic_err(value.to_string()),
}
}
}

0 comments on commit 49bc80c

Please sign in to comment.