mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Use usize for cache sizes.
This commit is contained in:
parent
339ab881a2
commit
803eba0e59
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue