Skip to content

Commit

Permalink
Revert "net: add SocketAddr::as_abstract_namespace (#6144)"
Browse files Browse the repository at this point in the history
This reverts commit 2400769.
  • Loading branch information
Darksonn committed Dec 8, 2023
1 parent 83b7397 commit 2fc775d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tokio/src/net/unix/socketaddr.rs
Expand Up @@ -22,15 +22,6 @@ impl SocketAddr {
pub fn as_pathname(&self) -> Option<&Path> {
self.0.as_pathname()
}

/// Returns the contents of this address if it is an abstract namespace.
///
/// See also the standard library documentation on [`SocketAddr`].
///
/// [`SocketAddr`]: std::os::unix::net::SocketAddr
pub fn as_abstract_namespace(&self) -> Option<&[u8]> {
self.0.as_abstract_namespace()
}
}

impl fmt::Debug for SocketAddr {
Expand Down

0 comments on commit 2fc775d

Please sign in to comment.