From 33a8c09f780bab2a3ecf998ebca40f5bfb8a29e8 Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Wed, 15 Apr 2026 00:47:29 +0200 Subject: [PATCH] clippy: Disallow lint `match_like_matches_macro` --- crates/radicle/src/lib.rs | 1 - crates/radicle/src/node.rs | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/radicle/src/lib.rs b/crates/radicle/src/lib.rs index e5bd7150..b0a3b7ac 100644 --- a/crates/radicle/src/lib.rs +++ b/crates/radicle/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::match_like_matches_macro)] #![allow(clippy::too_many_arguments)] #![allow(clippy::iter_nth_zero)] #![warn(clippy::unwrap_used)] diff --git a/crates/radicle/src/node.rs b/crates/radicle/src/node.rs index e7fb2e6b..f9e61c2e 100644 --- a/crates/radicle/src/node.rs +++ b/crates/radicle/src/node.rs @@ -514,10 +514,7 @@ impl Address { /// Returns `true` if the [`HostName`] is a Tor onion address. #[cfg(feature = "tor")] pub fn is_onion(&self) -> bool { - match self.0.host { - HostName::Tor(_) => true, - _ => false, - } + matches!(self.0.host, HostName::Tor(_)) } /// Return the port number of the [`Address`].