Skip to content

Commit 0724e46

Browse files
author
geno
committed
Cargo clippy
1 parent 81e14c6 commit 0724e46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn main() {
4040
fn do_watchdiff(opt: Opt) {
4141
// Print origin time
4242
let local = Local::now();
43-
let banner = format!("Origin at {}", local.to_string());
43+
let banner = format!("Origin at {}", local);
4444
println!("{}", banner.bold().underline());
4545

4646
// Setup command and arguments
@@ -77,7 +77,7 @@ fn run_command(cmd: &mut Command) -> String {
7777
fn print_diff(a: &str, b: &str) {
7878
// Print diff time
7979
let local = Local::now();
80-
let banner = format!("Diff at {}", local.to_string());
80+
let banner = format!("Diff at {}", local);
8181
println!("{}", banner.bold().underline());
8282

8383
// Split output into lines

0 commit comments

Comments
 (0)