Skip to content

Commit

Permalink
Fix a bug introduced in 933f72b which only produced the output of
Browse files Browse the repository at this point in the history
rustfmt (not rustfmt + verusfmt) unless the user invoked --verus-only
  • Loading branch information
parno committed Jan 17, 2024
1 parent d2ba1e9 commit 99af0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn format_file(file: &PathBuf, check: bool, verus_only: bool) -> miette::Result<
let formatted_output = if verus_only {
verus_fmted
} else {
rustfmt(&unparsed_file).ok_or(miette!("rustfmt failed"))?
rustfmt(&verus_fmted).ok_or(miette!("rustfmt failed"))?
};

if check {
Expand Down

0 comments on commit 99af0b4

Please sign in to comment.