mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use usize for cache indices.
This commit is contained in:
parent
803eba0e59
commit
d2252a7214
1 changed files with 2 additions and 2 deletions
|
@ -351,7 +351,7 @@ impl StyleSharingCandidateCache {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn touch(&mut self, index: uint) {
|
||||
pub fn touch(&mut self, index: usize) {
|
||||
self.cache.touch(index)
|
||||
}
|
||||
}
|
||||
|
@ -363,7 +363,7 @@ pub enum StyleSharingResult {
|
|||
CannotShare(bool),
|
||||
/// The node's style can be shared. The integer specifies the index in the LRU cache that was
|
||||
/// hit and the damage that was done.
|
||||
StyleWasShared(uint, RestyleDamage),
|
||||
StyleWasShared(usize, RestyleDamage),
|
||||
}
|
||||
|
||||
pub trait MatchMethods {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue