@@ -332,41 +332,6 @@ fn load_configuration(args: &Args) -> Map<String, serde_json::Value> {
332
332
. unwrap_or_default ( )
333
333
}
334
334
335
- // fn apply_fixes(
336
- // testable: &mut TestableType,
337
- // check: &&Check,
338
- // mut result: CheckResult,
339
- // args: &Args,
340
- // ) -> CheckResult {
341
- // if let TestableType::Single(testable) = testable {
342
- // if args.hotfix {
343
- // if let Some(fix) = check.hotfix {
344
- // result.hotfix_result = match fix(testable) {
345
- // Ok(_) => Some(FixResult::Fixed),
346
- // Err(e) => Some(FixResult::FixError(e)),
347
- // }
348
- // } else {
349
- // result.hotfix_result = Some(FixResult::Unfixable);
350
- // }
351
- // } else if check.hotfix.is_some() {
352
- // result.hotfix_result = Some(FixResult::Available);
353
- // }
354
- // if args.fix_sources {
355
- // if let Some(fix) = check.fix_source {
356
- // result.sourcefix_result = match fix(testable) {
357
- // Ok(_) => Some(FixResult::Fixed),
358
- // Err(e) => Some(FixResult::FixError(e)),
359
- // }
360
- // } else {
361
- // result.sourcefix_result = Some(FixResult::Unfixable);
362
- // }
363
- // } else if check.fix_source.is_some() {
364
- // result.sourcefix_result = Some(FixResult::Available);
365
- // }
366
- // }
367
- // result
368
- // }
369
-
370
335
fn try_fixing_stuff ( results : & mut RunResults , args : & Args , registry : & Registry ) {
371
336
let failed_checks = results
372
337
. iter_mut ( )
0 commit comments