From 49bc80c1a08edf9ffa664ac446bc5485b275def3 Mon Sep 17 00:00:00 2001 From: Benjamin DENEUX Date: Fri, 24 Mar 2023 11:41:51 +0100 Subject: [PATCH] fix(law): linter impl From unstead of into --- contracts/cw-law-stone/src/error.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/cw-law-stone/src/error.rs b/contracts/cw-law-stone/src/error.rs index 9aa19f07..a1e73607 100644 --- a/contracts/cw-law-stone/src/error.rs +++ b/contracts/cw-law-stone/src/error.rs @@ -49,11 +49,11 @@ pub enum UriError { IncompatibleQuery, } -impl Into for ContractError { - fn into(self) -> StdError { - match self { +impl From for StdError { + fn from(value: ContractError) -> Self { + match value { Std(e) => e, - _ => StdError::generic_err(self.to_string()), + _ => StdError::generic_err(value.to_string()), } } }