Use usize for cache indices.

This commit is contained in:
Ms2ger 2015-03-29 12:46:28 +02:00
parent 803eba0e59
commit d2252a7214

View file

@ -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 {