From 5726d98133b5fb276209c286e318c19b4a3f0d82 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Tue, 10 Dec 2024 10:33:47 -0600 Subject: [PATCH] clippy --- crates/libs/bindgen/src/types/mod.rs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/crates/libs/bindgen/src/types/mod.rs b/crates/libs/bindgen/src/types/mod.rs index 9f3657de36..e0ae4fedf7 100644 --- a/crates/libs/bindgen/src/types/mod.rs +++ b/crates/libs/bindgen/src/types/mod.rs @@ -721,13 +721,18 @@ impl Type { } pub fn is_convertible(&self) -> bool { - match self { - Self::Delegate(..) | Self::Interface(..) | Self::Class(..) | Self::CppInterface(..) => { - true - } - Self::PCSTR | Self::PCWSTR | Self::Object | Self::IUnknown | Self::Param(_) => true, - _ => false, - } + matches!( + self, + Self::Delegate(..) + | Self::Interface(..) + | Self::Class(..) + | Self::CppInterface(..) + | Self::PCSTR + | Self::PCWSTR + | Self::Object + | Self::IUnknown + | Self::Param(_) + ) } pub fn is_const_ref(&self) -> bool {