Skip to content

Commit

Permalink
Revert "net: add SocketAddr::as_abstract_namespace (#6144)" (#6198)
Browse files Browse the repository at this point in the history
This reverts commit 2400769.
  • Loading branch information
Darksonn authored Dec 8, 2023
1 parent 83b7397 commit debcb22
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tokio/src/net/unix/socketaddr.rs
Original file line number Diff line number Diff line change
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 debcb22

Please sign in to comment.