mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use usize in test_lru_cache.
This commit is contained in:
parent
54c006d159
commit
f50530577c
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ fn test_lru_cache() {
|
|||
let four = Cell::new("four");
|
||||
|
||||
// Test normal insertion.
|
||||
let mut cache: LRUCache<uint,Cell<&str>> = LRUCache::new(2); // (_, _) (cache is empty)
|
||||
let mut cache: LRUCache<usize,Cell<&str>> = LRUCache::new(2); // (_, _) (cache is empty)
|
||||
cache.insert(1, one); // (1, _)
|
||||
cache.insert(2, two); // (1, 2)
|
||||
cache.insert(3, three); // (2, 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue