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 {