mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Updated fixes to some clippy warnings in components/script
This commit is contained in:
parent
e74a03724f
commit
2a37c3dec8
58 changed files with 156 additions and 265 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue