From 1d4ff0ab16faaef380da96ef5e0a55352aac7e0f Mon Sep 17 00:00:00 2001 From: Romain Ruetschi Date: Mon, 22 Apr 2024 11:19:14 +0200 Subject: [PATCH] Fix cargo-doc build on nightly --- crates/relayer-cli/src/lib.rs | 2 +- .../relayer-types/src/core/ics03_connection/connection.rs | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/relayer-cli/src/lib.rs b/crates/relayer-cli/src/lib.rs index 5185118d69..0b817798ff 100644 --- a/crates/relayer-cli/src/lib.rs +++ b/crates/relayer-cli/src/lib.rs @@ -14,7 +14,7 @@ #![forbid(unsafe_code)] #![deny(rust_2018_idioms, trivial_casts, unused_lifetimes)] -#![allow(deprecated)] +#![allow(deprecated, unknown_lints, non_local_definitions)] extern crate alloc; diff --git a/crates/relayer-types/src/core/ics03_connection/connection.rs b/crates/relayer-types/src/core/ics03_connection/connection.rs index d240eaf905..d9c3ce9c60 100644 --- a/crates/relayer-types/src/core/ics03_connection/connection.rs +++ b/crates/relayer-types/src/core/ics03_connection/connection.rs @@ -1,9 +1,6 @@ +use std::fmt::{Display, Error as FmtError, Formatter}; use std::str::FromStr; use std::time::Duration; -use std::{ - fmt::{Display, Error as FmtError, Formatter}, - u64, -}; use ibc_proto::Protobuf; use serde::{Deserialize, Serialize}; @@ -388,6 +385,6 @@ impl TryFrom for State { impl From for i32 { fn from(value: State) -> Self { - value.into() + value as i32 } }