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:
eri 2024-03-30 11:06:26 +01:00 committed by GitHub
parent 92d9081366
commit e3d6b66d5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 34 additions and 54 deletions

View file

@ -64,14 +64,14 @@ impl CryptoMethods for Crypto {
}
fn is_integer_buffer(array_type: Type) -> bool {
match array_type {
matches!(
array_type,
Type::Uint8 |
Type::Uint8Clamped |
Type::Int8 |
Type::Uint16 |
Type::Int16 |
Type::Uint32 |
Type::Int32 => true,
_ => false,
}
Type::Uint8Clamped |
Type::Int8 |
Type::Uint16 |
Type::Int16 |
Type::Uint32 |
Type::Int32
)
}