Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
relax reference requirement on SocketAddrExt::from_abstract_name Reference: https://github.com/rust-lang/rust/issues/85410#issuecomment-1369544671
This commit is contained in:
commit
548ae602fc
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ pub trait SocketAddrExt: Sealed {
|
|||
/// Ok(())
|
||||
/// }
|
||||
/// ```
|
||||
fn from_abstract_name<N>(name: &N) -> crate::io::Result<SocketAddr>
|
||||
fn from_abstract_name<N>(name: N) -> crate::io::Result<SocketAddr>
|
||||
where
|
||||
N: AsRef<[u8]>;
|
||||
|
||||
|
|
|
@ -256,7 +256,7 @@ impl linux_ext::addr::SocketAddrExt for SocketAddr {
|
|||
if let AddressKind::Abstract(name) = self.address() { Some(name) } else { None }
|
||||
}
|
||||
|
||||
fn from_abstract_name<N>(name: &N) -> crate::io::Result<Self>
|
||||
fn from_abstract_name<N>(name: N) -> crate::io::Result<Self>
|
||||
where
|
||||
N: AsRef<[u8]>,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue