Skip to content

Commit

Permalink
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
Browse files Browse the repository at this point in the history
relax reference requirement on SocketAddrExt::from_abstract_name

Reference: rust-lang/rust#85410 (comment)
  • Loading branch information
Dylan-DPC committed Jan 18, 2023
2 parents 3883b80 + 149de5d commit b007967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion std/src/os/net/linux_ext/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]>;

Expand Down
2 changes: 1 addition & 1 deletion std/src/os/unix/net/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]>,
{
Expand Down

0 comments on commit b007967

Please sign in to comment.