We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81e14c6 commit 0724e46Copy full SHA for 0724e46
src/main.rs
@@ -40,7 +40,7 @@ fn main() {
40
fn do_watchdiff(opt: Opt) {
41
// Print origin time
42
let local = Local::now();
43
- let banner = format!("Origin at {}", local.to_string());
+ let banner = format!("Origin at {}", local);
44
println!("{}", banner.bold().underline());
45
46
// Setup command and arguments
@@ -77,7 +77,7 @@ fn run_command(cmd: &mut Command) -> String {
77
fn print_diff(a: &str, b: &str) {
78
// Print diff time
79
80
- let banner = format!("Diff at {}", local.to_string());
+ let banner = format!("Diff at {}", local);
81
82
83
// Split output into lines
0 commit comments