fix: add a new assignment kind instead of using a boolean

This commit is contained in:
rvcas
2024-06-25 18:35:42 -04:00
committed by Lucas
parent f1cfc84e67
commit 5bdea11cc1
4 changed files with 25 additions and 12 deletions

View File

@@ -2691,7 +2691,7 @@ fn if_soft_cast_unused_pattern() {
}
"#;
let (warnings, _ast) = dbg!(check(parse(source_code))).unwrap();
let (warnings, _ast) = check(parse(source_code)).unwrap();
assert!(matches!(
warnings[0],
@@ -2716,7 +2716,7 @@ fn if_soft_cast_not_data() {
}
"#;
let (warnings, _ast) = dbg!(check(parse(source_code))).unwrap();
let (warnings, _ast) = check(parse(source_code)).unwrap();
assert!(matches!(warnings[0], Warning::UseWhenInstead { .. }))
}