diff --git a/ibc-core/ics24-host/types/src/identifiers/chain_id.rs b/ibc-core/ics24-host/types/src/identifiers/chain_id.rs index 4683ae5c4..dc1ff7fea 100644 --- a/ibc-core/ics24-host/types/src/identifiers/chain_id.rs +++ b/ibc-core/ics24-host/types/src/identifiers/chain_id.rs @@ -1,16 +1,15 @@ -use crate::error::IdentifierError; -use crate::validate::{ - validate_identifier_chars, validate_identifier_length, validate_prefix_length, -}; - use core::fmt::{self, Debug, Display, Error as FmtError, Formatter}; use core::str::FromStr; use ibc_primitives::prelude::*; - #[cfg(feature = "serde")] use serde::de::{Deserialize, Deserializer, Error, MapAccess, Visitor}; +use crate::error::IdentifierError; +use crate::validate::{ + validate_identifier_chars, validate_identifier_length, validate_prefix_length, +}; + /// Defines the domain type for chain identifiers. /// /// A valid `ChainId` follows the format {chain name}-{revision number} where