mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix more warnings everywhere.
This commit is contained in:
parent
5ffd71cd5e
commit
6a58cbd118
7 changed files with 5 additions and 7 deletions
|
@ -126,7 +126,7 @@ macro_rules! int_range_index {
|
|||
|
||||
impl ::std::num::NumCast for $Self_ {
|
||||
fn from<T: ToPrimitive>(n: T) -> Option<$Self_> {
|
||||
n.to_int().map($Self_)
|
||||
n.to_isize().map($Self_)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue