From c710fa3ba990449c662a30d744d67947c2724a95 Mon Sep 17 00:00:00 2001 From: Soares Chen Date: Thu, 27 May 2021 13:24:13 +0200 Subject: [PATCH] Update flex-error version --- Cargo.lock | 5 +++-- modules/Cargo.toml | 2 +- modules/src/ics26_routing/error.rs | 10 +++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0e6391bbde..ecdf0c411e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -721,10 +721,11 @@ dependencies = [ [[package]] name = "flex-error" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8faf463724307080defa723211b8eb735a475158d3283a21b6ca1e8b7ba928f9" +checksum = "e529c5becee73150e0c7a487f3680ee99c0b1b13e55388e685916146975f6fb5" dependencies = [ + "anyhow", "eyre", "paste", ] diff --git a/modules/Cargo.toml b/modules/Cargo.toml index 69fc3a4b26..f5a806a90b 100644 --- a/modules/Cargo.toml +++ b/modules/Cargo.toml @@ -36,7 +36,7 @@ dyn-clonable = "0.9.0" regex = "1" subtle-encoding = "0.5" sha2 = { version = "0.9.3", optional = true } -flex-error = "0.1.0" +flex-error = "0.1.1" [dependencies.tendermint] version = "=0.19.0" diff --git a/modules/src/ics26_routing/error.rs b/modules/src/ics26_routing/error.rs index a667a56904..eb61327903 100644 --- a/modules/src/ics26_routing/error.rs +++ b/modules/src/ics26_routing/error.rs @@ -6,19 +6,19 @@ use flex_error::*; define_error! { RoutingError; Ics02Client - [ StdError ] + [ DisplayError ] | _ | { format_args!("ICS02 client error") }, Ics03Connection - [ StdError ] + [ DisplayError ] | _ | { format_args!("ICS03 connection error") }, Ics04Channel - [ StdError ] + [ DisplayError ] | _ | { format_args!("ICS04 channel error") }, Ics20FungibleTokenTransfer - [ StdError ] + [ DisplayError ] | _ | { format_args!("ICS20 fungible token transfer error") }, UnknownMessageTypeUrl @@ -26,6 +26,6 @@ define_error! { RoutingError; | e | { format_args!("unknown type URL {0}", e.url) }, MalformedMessageBytes - [ StdError ] + [ DisplayError ] | _ | { format_args!("the message is malformed and cannot be decoded") }, }