Fix more clippy (#32740)

This commit is contained in:
石蕊 (Pi-Cla) 2024-07-09 04:47:43 +00:00 committed by GitHub
parent 4e1f623666
commit f29dd64a7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 72 additions and 90 deletions

View file

@ -279,11 +279,11 @@ impl WebGLExtensions {
}
pub fn is_tex_type_enabled(&self, data_type: GLenum) -> bool {
self.features
!self
.features
.borrow()
.disabled_tex_types
.get(&data_type)
.is_none()
.contains(&data_type)
}
pub fn add_effective_tex_internal_format(
@ -321,11 +321,11 @@ impl WebGLExtensions {
}
pub fn is_filterable(&self, text_data_type: u32) -> bool {
self.features
!self
.features
.borrow()
.not_filterable_tex_types
.get(&text_data_type)
.is_none()
.contains(&text_data_type)
}
pub fn enable_hint_target(&self, name: GLenum) {