1
1
use dprint_core:: formatting:: { ConditionReference , Info } ;
2
- use fnv:: { FnvHashMap , FnvHashSet } ;
2
+ use rustc_hash:: FxHashMap ;
3
+ use rustc_hash:: FxHashSet ;
3
4
use swc_ast_view:: * ;
4
5
5
6
use super :: * ;
@@ -14,9 +15,9 @@ pub struct Context<'a> {
14
15
pub token_finder : TokenFinder < ' a > ,
15
16
pub current_node : Node < ' a > ,
16
17
pub parent_stack : Stack < Node < ' a > > ,
17
- handled_comments : FnvHashSet < BytePos > ,
18
- stored_infos : FnvHashMap < ( BytePos , BytePos ) , Info > ,
19
- stored_info_ranges : FnvHashMap < ( BytePos , BytePos ) , ( Info , Info ) > ,
18
+ handled_comments : FxHashSet < BytePos > ,
19
+ stored_infos : FxHashMap < ( BytePos , BytePos ) , Info > ,
20
+ stored_info_ranges : FxHashMap < ( BytePos , BytePos ) , ( Info , Info ) > ,
20
21
pub end_statement_or_member_infos : Stack < Info > ,
21
22
before_comments_start_info_stack : Stack < ( Span , Info ) > ,
22
23
if_stmt_last_brace_condition_ref : Option < ConditionReference > ,
@@ -36,9 +37,9 @@ impl<'a> Context<'a> {
36
37
token_finder : TokenFinder :: new ( module) ,
37
38
current_node,
38
39
parent_stack : Stack :: new ( ) ,
39
- handled_comments : FnvHashSet :: default ( ) ,
40
- stored_infos : FnvHashMap :: default ( ) ,
41
- stored_info_ranges : FnvHashMap :: default ( ) ,
40
+ handled_comments : FxHashSet :: default ( ) ,
41
+ stored_infos : FxHashMap :: default ( ) ,
42
+ stored_info_ranges : FxHashMap :: default ( ) ,
42
43
end_statement_or_member_infos : Stack :: new ( ) ,
43
44
before_comments_start_info_stack : Stack :: new ( ) ,
44
45
if_stmt_last_brace_condition_ref : None ,
0 commit comments