mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Return usize from IDLInterface::get_prototype_depth.
It is used as an index into an array.
This commit is contained in:
parent
c84dfa0f1d
commit
a3fedee46e
2 changed files with 2 additions and 2 deletions
|
@ -1923,7 +1923,7 @@ impl IDLInterface for ${type} {
|
|||
fn get_prototype_id() -> PrototypeList::ID {
|
||||
PrototypeList::ID::${type}
|
||||
}
|
||||
fn get_prototype_depth() -> uint {
|
||||
fn get_prototype_depth() -> usize {
|
||||
${depth}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ pub trait IDLInterface {
|
|||
fn get_prototype_id() -> PrototypeList::ID;
|
||||
/// Returns the prototype depth, i.e., the number of interfaces this
|
||||
/// interface inherits from.
|
||||
fn get_prototype_depth() -> uint;
|
||||
fn get_prototype_depth() -> usize;
|
||||
}
|
||||
|
||||
/// A trait to convert Rust types to `JSVal`s.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue