Skip to content

Commit 4496337

Browse files
Centriltomaka
andauthored
Onion3Addr::acquire: fix bug due to differing lifetimes (#1468)
Co-authored-by: Pierre Krieger <[email protected]>
1 parent 4472840 commit 4496337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/multiaddr/src/onion_addr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ impl<'a> Onion3Addr<'a> {
2020

2121
/// Consume this instance and create an owned version containing the same address
2222
pub fn acquire<'b>(self) -> Onion3Addr<'b> {
23-
Self(Cow::Owned(self.0.into_owned()), self.1)
23+
Onion3Addr(Cow::Owned(self.0.into_owned()), self.1)
2424
}
2525
}
2626

0 commit comments

Comments
 (0)