Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr committed Dec 10, 2024
1 parent 1a8441b commit 5726d98
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions crates/libs/bindgen/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5726d98

Please sign in to comment.