From d2252a7214b7e50dcf9930f4cd3dd67dbbe98706 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Sun, 29 Mar 2015 12:46:28 +0200 Subject: [PATCH] Use usize for cache indices. --- components/layout/css/matching.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/layout/css/matching.rs b/components/layout/css/matching.rs index 86575886f04..400f8693231 100644 --- a/components/layout/css/matching.rs +++ b/components/layout/css/matching.rs @@ -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 {