style: Convert FnvHash{Set,Map} instances to FxHash{Set,Map}.

Bug: 1477628
Reviewed-by: heycam
This commit is contained in:
Nicholas Nethercote 2018-07-27 16:49:04 +10:00 committed by Emilio Cobos Álvarez
parent 0cab212052
commit fc9df0bcf3
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
18 changed files with 49 additions and 44 deletions

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use fnv::FnvHashMap;
use fxhash::FxHashMap;
use tree::OpaqueElement;
/// A cache to speed up matching of nth-index-like selectors.
@ -32,7 +32,7 @@ impl NthIndexCache {
/// The concrete per-pseudo-class cache.
#[derive(Default)]
pub struct NthIndexCacheInner(FnvHashMap<OpaqueElement, i32>);
pub struct NthIndexCacheInner(FxHashMap<OpaqueElement, i32>);
impl NthIndexCacheInner {
/// Does a lookup for a given element in the cache.