mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
LRUCache::new -> LRUCache::default.
MozReview-Commit-ID: KouOaYTluRx
This commit is contained in:
parent
8b6c5988b5
commit
13a3cf27a8
3 changed files with 6 additions and 5 deletions
|
@ -546,7 +546,7 @@ impl<E: TElement> SelectorFlagsMap<E> {
|
|||
pub fn new() -> Self {
|
||||
SelectorFlagsMap {
|
||||
map: FnvHashMap::default(),
|
||||
cache: LRUCache::new(),
|
||||
cache: LRUCache::default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -415,7 +415,7 @@ struct SharingCacheBase<Candidate> {
|
|||
impl<Candidate> Default for SharingCacheBase<Candidate> {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
entries: LRUCache::new(),
|
||||
entries: LRUCache::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue