mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-08-01 01:11:58 +00:00
Automatic fixes by cargo-fix (#1662)
This commit is contained in:
@@ -121,7 +121,7 @@ pub enum FromUrlErr {
|
||||
}
|
||||
|
||||
impl fmt::Display for FromUrlErr {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match self {
|
||||
FromUrlErr::BadUrl => write!(f, "Bad URL"),
|
||||
FromUrlErr::UnsupportedScheme => write!(f, "Unrecognized URL scheme"),
|
||||
|
@@ -143,7 +143,7 @@ impl Multiaddr {
|
||||
/// updated `Protocol` at position `at` will be returned.
|
||||
pub fn replace<'a, F>(&self, at: usize, by: F) -> Option<Multiaddr>
|
||||
where
|
||||
F: FnOnce(&Protocol) -> Option<Protocol<'a>>
|
||||
F: FnOnce(&Protocol<'_>) -> Option<Protocol<'a>>
|
||||
{
|
||||
let mut address = Multiaddr::with_capacity(self.len());
|
||||
let mut fun = Some(by);
|
||||
|
Reference in New Issue
Block a user