mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
bindings: Return errors in Result rather than setting an out parameter
Fixes #909.
This commit is contained in:
parent
4b0680a136
commit
73c1a12f30
73 changed files with 891 additions and 550 deletions
|
@ -14,13 +14,15 @@ impl HTMLModElement {
|
|||
None
|
||||
}
|
||||
|
||||
pub fn SetCite(&mut self, _cite: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetCite(&mut self, _cite: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn DateTime(&self) -> DOMString {
|
||||
None
|
||||
}
|
||||
|
||||
pub fn SetDateTime(&mut self, _datetime: &DOMString, _rv: &mut ErrorResult) {
|
||||
pub fn SetDateTime(&mut self, _datetime: &DOMString) -> ErrorResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue