Skip to content

Commit

Permalink
Update app.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Jul 11, 2024
1 parent 9acd284 commit 9a5ef12
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/cli/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,8 @@ pub fn run() -> anyhow::Result<()> {
if arg.json {
let params = params::Params::new(params);
let output =
serde_json::to_vec(&params).context("could not serialize as JSON")?;
if let Ok(string) = std::str::from_utf8(&output) {
println!("{string}");
} else {
output::write_to_stdout(&output)?;
}
serde_json::to_string(&params).context("could not serialize as JSON")?;
println!("{output}");
return Ok(());
}
params::displayln_without_resources(params.log_n(), params.r(), params.p());
Expand Down

0 comments on commit 9a5ef12

Please sign in to comment.