Skip to content

Commit

Permalink
Fix match_like_matches_macro Clippy lint
Browse files Browse the repository at this point in the history
We've updated our MSVR since the comment above it.
  • Loading branch information
Thomasdezeeuw committed Nov 6, 2021
1 parent f8695a7 commit 44666e8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/sys/unix/uds/socketaddr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,8 @@ cfg_os_poll! {
/// Documentation reflected in [`SocketAddr`]
///
/// [`SocketAddr`]: std::os::unix::net::SocketAddr
// FIXME: The matches macro requires rust 1.42.0 and we still support 1.39.0
#[allow(clippy::match_like_matches_macro)]
pub fn is_unnamed(&self) -> bool {
if let AddressKind::Unnamed = self.address() {
true
} else {
false
}
matches!(self.address(), AddressKind::Unnamed)
}

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

0 comments on commit 44666e8

Please sign in to comment.