mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-07-03 03:31:37 +00:00
Automatic fixes by cargo-fix (#1662)
This commit is contained in:
@ -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