mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Fix more clippy (#32740)
This commit is contained in:
parent
4e1f623666
commit
f29dd64a7b
25 changed files with 72 additions and 90 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue