Updated fixes to some clippy warnings in components/script

This commit is contained in:
jahielkomu 2024-03-31 17:19:04 +03:00
parent e74a03724f
commit 2a37c3dec8
58 changed files with 156 additions and 265 deletions

View file

@ -24,10 +24,7 @@ gl_enums! {
impl TexImageTarget {
pub fn is_cubic(&self) -> bool {
match *self {
TexImageTarget::Texture2D => false,
_ => true,
}
!matches!(*self, TexImageTarget::Texture2D)
}
pub fn dimensions(self) -> u8 {