Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Sep 20, 2024
1 parent 6f7e7ac commit 1f269d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ fn main() -> Result<()> {
Some(f) => f,
};

Ok(match format {
match format {
OutputFormat::Plain => render::render_findings(stdout(), &results)?,
OutputFormat::Json => serde_json::to_writer_pretty(stdout(), &results)?,
OutputFormat::Sarif => serde_json::to_writer_pretty(stdout(), &sarif::build(results))?,
})
};
Ok(())
}

0 comments on commit 1f269d1

Please sign in to comment.