Skip to content

Commit

Permalink
screw you rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham committed Oct 12, 2024
1 parent 1ed74d0 commit cad26a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,10 @@ fn render_single_output(
.context("Template render failed")?;

if let Some(path) = check {
if matches!(check_result_with_file(&path, &result).context("Check mode failed")?, CheckResult::Fail) {
if matches!(
check_result_with_file(&path, &result).context("Check mode failed")?,
CheckResult::Fail
) {
std::process::exit(1);
}
} else if let Some(filename) = filename {
Expand Down

0 comments on commit cad26a1

Please sign in to comment.