mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
chore: s/with_labels([span])/with_label(span)
This commit is contained in:
parent
c26975ab76
commit
3c72ab769b
1 changed files with 4 additions and 4 deletions
|
|
@ -291,7 +291,7 @@ mod test {
|
|||
}
|
||||
|
||||
fn remove_middle(span: Span) -> OxcDiagnostic {
|
||||
OxcDiagnostic::warn("removemiddle").with_labels([span])
|
||||
OxcDiagnostic::warn("removemiddle").with_label(span)
|
||||
}
|
||||
|
||||
fn remove_end() -> OxcDiagnostic {
|
||||
|
|
@ -303,15 +303,15 @@ mod test {
|
|||
}
|
||||
|
||||
fn no_fix(span: Span) -> OxcDiagnostic {
|
||||
OxcDiagnostic::warn("nofix").with_labels([span])
|
||||
OxcDiagnostic::warn("nofix").with_label(span)
|
||||
}
|
||||
|
||||
fn no_fix_1(span: Span) -> OxcDiagnostic {
|
||||
OxcDiagnostic::warn("nofix1").with_labels([span])
|
||||
OxcDiagnostic::warn("nofix1").with_label(span)
|
||||
}
|
||||
|
||||
fn no_fix_2(span: Span) -> OxcDiagnostic {
|
||||
OxcDiagnostic::warn("nofix2").with_labels([span])
|
||||
OxcDiagnostic::warn("nofix2").with_label(span)
|
||||
}
|
||||
|
||||
const TEST_CODE: &str = "var answer = 6 * 7;";
|
||||
|
|
|
|||
Loading…
Reference in a new issue