diff options
Diffstat (limited to 'components/script/dom/htmloptionscollection.rs')
-rw-r--r-- | components/script/dom/htmloptionscollection.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmloptionscollection.rs b/components/script/dom/htmloptionscollection.rs index 42d6aebde35..f3b839a8a2a 100644 --- a/components/script/dom/htmloptionscollection.rs +++ b/components/script/dom/htmloptionscollection.rs @@ -49,7 +49,7 @@ impl HTMLOptionsCollection { for _ in 0..count { let element = HTMLOptionElement::new(local_name!("option"), None, &document); let node = element.upcast::<Node>(); - try!(root.AppendChild(node)); + root.AppendChild(node)?; }; Ok(()) } @@ -90,7 +90,7 @@ impl HTMLOptionsCollectionMethods for HTMLOptionsCollection { // Step 4 if n > 0 { - try!(self.add_new_elements(n as u32)); + self.add_new_elements(n as u32)?; } // Step 5 |