Skip to content

Commit 82a6f26

Browse files
leaysgurCopilot
andauthored
Update apps/oxfmt/src/format.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Yuji Sugiura <6259812+leaysgur@users.noreply.github.com>
1 parent 0c55b4e commit 82a6f26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/oxfmt/src/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ impl FormatRunner {
189189
CliRunResult::FormatMismatch
190190
}
191191
// Default (write) does not output anything
192-
(OutputOptions::DefaultWrite, count) => {
192+
(OutputOptions::DefaultWrite, warnings_count) => {
193193
// Each changed file is also NOT printed by reporter
194-
debug_assert_eq!(count, 0, "There should be no warnings in write mode");
194+
debug_assert_eq!(warnings_count, 0, "There should be no warnings in write mode");
195195
CliRunResult::FormatSucceeded
196196
}
197197
}

0 commit comments

Comments
 (0)