Skip to content

Commit

Permalink
minor: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-markin committed Jun 24, 2024
1 parent d54d484 commit 6e5b4ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion substrate/client/network/types/src/multiaddr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl From<LibP2pMultiaddr> for Multiaddr {
impl From<Multiaddr> for LibP2pMultiaddr {
fn from(multiaddr: Multiaddr) -> Self {
multiaddr.into_iter().map(Into::into).collect()
}
}
}

impl From<IpAddr> for Multiaddr {
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/network/types/src/multiaddr/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl<'a> Display for Protocol<'a> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let protocol = LiteP2pProtocol::from(self.clone());
Display::fmt(&protocol, f)
}
}
}

impl<'a> From<IpAddr> for Protocol<'a> {
Expand Down

0 comments on commit 6e5b4ef

Please sign in to comment.