Use usize for cache sizes.

This commit is contained in:
Ms2ger 2015-03-29 12:45:19 +02:00
parent 339ab881a2
commit 803eba0e59

View file

@ -130,7 +130,7 @@ impl<'a> Hash for ApplicableDeclarationsCacheQuery<'a> {
}
}
static APPLICABLE_DECLARATIONS_CACHE_SIZE: uint = 32;
static APPLICABLE_DECLARATIONS_CACHE_SIZE: usize = 32;
pub struct ApplicableDeclarationsCache {
cache: SimpleHashCache<ApplicableDeclarationsCacheEntry,Arc<ComputedValues>>,
@ -331,7 +331,7 @@ impl StyleSharingCandidate {
}
}
static STYLE_SHARING_CANDIDATE_CACHE_SIZE: uint = 40;
static STYLE_SHARING_CANDIDATE_CACHE_SIZE: usize = 40;
impl StyleSharingCandidateCache {
pub fn new() -> StyleSharingCandidateCache {