diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-06-18 13:21:32 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-06-18 13:21:49 +0200 |
commit | 7af5a7fd5409ab8db0274eb829136e5953e718ed (patch) | |
tree | ee7103d6651e45943609118f93cc8789ebbb4d86 /components/script/dom/htmloptionscollection.rs | |
parent | a5bb55790fe34de6e6dc561314d2a9491972585e (diff) | |
download | servo-7af5a7fd5409ab8db0274eb829136e5953e718ed.tar.gz servo-7af5a7fd5409ab8db0274eb829136e5953e718ed.zip |
Untry script
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 |