mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Fix/silence some warnings
This commit is contained in:
parent
01442ba1ae
commit
53f5023685
3 changed files with 6 additions and 3 deletions
|
@ -437,6 +437,7 @@ impl HTMLMediaElement {
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#concept-media-load-algorithm
|
||||
#[allow(unreachable_code)]
|
||||
fn resource_selection_algorithm_sync(&self, base_url: ServoUrl) {
|
||||
// TODO step 5 (populate pending text tracks)
|
||||
|
||||
|
@ -446,7 +447,7 @@ impl HTMLMediaElement {
|
|||
ResourceSelectionMode::Object
|
||||
} else if let Some(attr) = self.upcast::<Element>().get_attribute(&ns!(), &local_name!("src")) {
|
||||
ResourceSelectionMode::Attribute(attr.Value().to_string())
|
||||
} else if false {
|
||||
} else if false { // TODO: when implementing this remove #[allow(unreachable_code)] above.
|
||||
// TODO <source> child
|
||||
ResourceSelectionMode::Children(panic!())
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue