mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Untry script
This commit is contained in:
parent
a5bb55790f
commit
7af5a7fd54
36 changed files with 199 additions and 199 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue