Skip to content

Commit

Permalink
run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-lennox committed Aug 17, 2022
1 parent 7380641 commit cf0931f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions crates/fj-host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,16 @@ impl Model {
let exit_status = cargo_output.status;

if exit_status.success() {
let seconds_taken = str::from_utf8(&cargo_output.stderr).unwrap().rsplit_once(' ').unwrap().1.trim();
status.update_status(format!("Model compiled successfully in {seconds_taken}!").as_str());
let seconds_taken = str::from_utf8(&cargo_output.stderr)
.unwrap()
.rsplit_once(' ')
.unwrap()
.1
.trim();
status.update_status(
format!("Model compiled successfully in {seconds_taken}!")
.as_str(),
);
} else {
let output = match command.output() {
Ok(output) => {
Expand Down

0 comments on commit cf0931f

Please sign in to comment.