Skip to content

Commit 44666e8

Browse files
committed
Fix match_like_matches_macro Clippy lint
We've updated our MSVR since the comment above it.
1 parent f8695a7 commit 44666e8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/sys/unix/uds/socketaddr.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,8 @@ cfg_os_poll! {
7878
/// Documentation reflected in [`SocketAddr`]
7979
///
8080
/// [`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)]
8381
pub fn is_unnamed(&self) -> bool {
84-
if let AddressKind::Unnamed = self.address() {
85-
true
86-
} else {
87-
false
88-
}
82+
matches!(self.address(), AddressKind::Unnamed)
8983
}
9084

9185
/// Returns the contents of this address if it is a `pathname` address.

0 commit comments

Comments
 (0)