mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -752,7 +752,9 @@ pub enum Error {
|
|||
InvalidCharacter,
|
||||
}
|
||||
|
||||
pub type ErrorResult = Result<(), Error>;
|
||||
pub type Fallible<T> = Result<T, Error>;
|
||||
|
||||
pub type ErrorResult = Fallible<()>;
|
||||
|
||||
pub struct EnumEntry {
|
||||
value: &'static str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue