mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-26 08:11:39 +00:00
Onion3Addr::acquire: fix bug due to differing lifetimes (#1468)
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
committed by
GitHub
parent
4472840acf
commit
4496337f93
@ -20,7 +20,7 @@ impl<'a> Onion3Addr<'a> {
|
|||||||
|
|
||||||
/// Consume this instance and create an owned version containing the same address
|
/// Consume this instance and create an owned version containing the same address
|
||||||
pub fn acquire<'b>(self) -> Onion3Addr<'b> {
|
pub fn acquire<'b>(self) -> Onion3Addr<'b> {
|
||||||
Self(Cow::Owned(self.0.into_owned()), self.1)
|
Onion3Addr(Cow::Owned(self.0.into_owned()), self.1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user