File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -2675,8 +2675,10 @@ function foo() {
26752675
26762676 #[ test]
26772677 fn test_suppression_engine_global_path_ignore ( ) {
2678- let mut rules_config = RulesConfig :: default ( ) ;
2679- rules_config. ignore_paths = vec ! [ "**/vendor/**" . to_string( ) , "**/generated/**" . to_string( ) ] ;
2678+ let rules_config = RulesConfig {
2679+ ignore_paths : vec ! [ "**/vendor/**" . to_string( ) , "**/generated/**" . to_string( ) ] ,
2680+ ..Default :: default ( )
2681+ } ;
26802682
26812683 let engine = SuppressionEngine :: new ( & rules_config, false ) ;
26822684
@@ -2704,11 +2706,13 @@ function foo() {
27042706
27052707 #[ test]
27062708 fn test_suppression_engine_per_rule_path_ignore ( ) {
2707- let mut rules_config = RulesConfig :: default ( ) ;
2708- rules_config. ignore_paths_by_rule . insert (
2709- "generic/long-function" . to_string ( ) ,
2710- vec ! [ "**/tests/**" . to_string( ) ] ,
2711- ) ;
2709+ let rules_config = RulesConfig {
2710+ ignore_paths_by_rule : HashMap :: from ( [ (
2711+ "generic/long-function" . to_string ( ) ,
2712+ vec ! [ "**/tests/**" . to_string( ) ] ,
2713+ ) ] ) ,
2714+ ..Default :: default ( )
2715+ } ;
27122716
27132717 let engine = SuppressionEngine :: new ( & rules_config, false ) ;
27142718
You can’t perform that action at this time.
0 commit comments