mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
change some allows to expects (#41040)
Changed some allow to expects and removed the unfulfilled expectations. Testing: Refactor Part of: #40383 Signed-off-by: anonmiraj <nabilmalek48@gmail.com>
This commit is contained in:
@@ -598,7 +598,7 @@ pub(crate) enum NetworkState {
|
||||
/// <https://html.spec.whatwg.org/multipage/#dom-media-readystate>
|
||||
#[derive(Clone, Copy, Debug, JSTraceable, MallocSizeOf, PartialEq, PartialOrd)]
|
||||
#[repr(u8)]
|
||||
#[allow(clippy::enum_variant_names)] // Clippy warning silenced here because these names are from the specification.
|
||||
#[expect(clippy::enum_variant_names)] // Clippy warning silenced here because these names are from the specification.
|
||||
pub(crate) enum ReadyState {
|
||||
HaveNothing = HTMLMediaElementConstants::HAVE_NOTHING as u8,
|
||||
HaveMetadata = HTMLMediaElementConstants::HAVE_METADATA as u8,
|
||||
|
||||
Reference in New Issue
Block a user