mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
clippy: Fix match_like_matches
warnings (#31947)
* clippy: Fix `match_like_matches` warnings * Fix link to custom element state in specification. --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
92d9081366
commit
e3d6b66d5f
5 changed files with 34 additions and 54 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