File tree 2 files changed +70
-171
lines changed
2 files changed +70
-171
lines changed Original file line number Diff line number Diff line change @@ -658,7 +658,9 @@ mod tests {
658
658
pub ( super ) fn check_expect ( config : InlayHintsConfig , ra_fixture : & str , expect : Expect ) {
659
659
let ( analysis, file_id) = fixture:: file ( ra_fixture) ;
660
660
let inlay_hints = analysis. inlay_hints ( & config, file_id, None ) . unwrap ( ) ;
661
- expect. assert_debug_eq ( & inlay_hints)
661
+ let filtered =
662
+ inlay_hints. into_iter ( ) . map ( |hint| ( hint. range , hint. label ) ) . collect :: < Vec < _ > > ( ) ;
663
+ expect. assert_debug_eq ( & filtered)
662
664
}
663
665
664
666
#[ track_caller]
@@ -674,7 +676,9 @@ mod tests {
674
676
loc. range = TextRange :: empty ( TextSize :: from ( 0 ) ) ;
675
677
}
676
678
} ) ;
677
- expect. assert_debug_eq ( & inlay_hints)
679
+ let filtered =
680
+ inlay_hints. into_iter ( ) . map ( |hint| ( hint. range , hint. label ) ) . collect :: < Vec < _ > > ( ) ;
681
+ expect. assert_debug_eq ( & filtered)
678
682
}
679
683
680
684
/// Computes inlay hints for the fixture, applies all the provided text edits and then runs
You can’t perform that action at this time.
0 commit comments