We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8695a7 commit 44666e8Copy full SHA for 44666e8
src/sys/unix/uds/socketaddr.rs
@@ -78,14 +78,8 @@ cfg_os_poll! {
78
/// Documentation reflected in [`SocketAddr`]
79
///
80
/// [`SocketAddr`]: std::os::unix::net::SocketAddr
81
- // FIXME: The matches macro requires rust 1.42.0 and we still support 1.39.0
82
- #[allow(clippy::match_like_matches_macro)]
83
pub fn is_unnamed(&self) -> bool {
84
- if let AddressKind::Unnamed = self.address() {
85
- true
86
- } else {
87
- false
88
- }
+ matches!(self.address(), AddressKind::Unnamed)
89
}
90
91
/// Returns the contents of this address if it is a `pathname` address.
0 commit comments