File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1037,7 +1037,7 @@ fn check_output(
1037
1037
kind : & ' static str ,
1038
1038
config : & TestConfig ,
1039
1039
) -> PathBuf {
1040
- let output = normalize ( output, config. comments , config . revision , kind) ;
1040
+ let output = normalize ( output, config, kind) ;
1041
1041
let path = output_path ( config, kind) ;
1042
1042
match & config. config . output_conflict_handling {
1043
1043
OutputConflictHandling :: Error => {
@@ -1073,10 +1073,10 @@ fn output_path(config: &TestConfig<'_>, kind: &str) -> PathBuf {
1073
1073
config. path . with_extension ( ext)
1074
1074
}
1075
1075
1076
- fn normalize ( text : & [ u8 ] , comments : & Comments , revision : & str , kind : & ' static str ) -> Vec < u8 > {
1076
+ fn normalize ( text : & [ u8 ] , config : & TestConfig , kind : & ' static str ) -> Vec < u8 > {
1077
1077
let mut text = text. to_owned ( ) ;
1078
1078
1079
- for ( from, to) in comments . for_revision ( revision ) . flat_map ( |r| match kind {
1079
+ for ( from, to) in config . comments ( ) . flat_map ( |r| match kind {
1080
1080
"fixed" => & [ ] as & [ _ ] ,
1081
1081
"stderr" => & r. normalize_stderr ,
1082
1082
"stdout" => & r. normalize_stdout ,
You can’t perform that action at this time.
0 commit comments