mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
relax reference requirement on from_abstract_name
This commit is contained in:
parent
fbe8292872
commit
ee59533167
@ -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…
Reference in New Issue
Block a user