From 9f5491a56f6af1fa9b030f23d40150673a52aaa1 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 4 May 2025 20:51:33 -0400 Subject: [Rust] Misc clippy lints --- rust/src/headless.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rust/src/headless.rs') diff --git a/rust/src/headless.rs b/rust/src/headless.rs index 7279a459..1e56321b 100644 --- a/rust/src/headless.rs +++ b/rust/src/headless.rs @@ -255,10 +255,10 @@ impl MainThreadHandler for HeadlessMainThreadSender { } fn is_enterprise_product() -> bool { - match crate::product().as_str() { - "Binary Ninja Enterprise Client" | "Binary Ninja Ultimate" => true, - _ => false, - } + matches!( + crate::product().as_str(), + "Binary Ninja Enterprise Client" | "Binary Ninja Ultimate" + ) } #[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)] -- cgit v1.3.1