Skip to content

Commit 69fe03b

Browse files
committed
Apply clippy recommendataions.
1 parent 2930240 commit 69fe03b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/cli/submit.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use signal_hook::consts::{SIGINT, SIGTERM};
1010
use signal_hook::flag;
1111
use std::collections::HashSet;
1212
use std::error::Error;
13+
use std::fmt::Write as _;
1314
use std::io::prelude::*;
1415
use std::io::{self, IsTerminal};
1516
use std::path::PathBuf;
@@ -265,7 +266,11 @@ pub fn submit<W: Write>(
265266
.italic()
266267
.to_string();
267268
}
268-
message += &format!(" ({:#}).", style(HumanDuration(instant.elapsed())).dim());
269+
let _ = write!(
270+
message,
271+
" ({:#}).",
272+
style(HumanDuration(instant.elapsed())).dim()
273+
);
269274
println!("{message}");
270275

271276
let result = scheduler.submit(

0 commit comments

Comments
 (0)