diff options
author | KNnut <9387720+KNnut@users.noreply.github.com> | 2020-11-09 22:38:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 15:38:29 +0100 |
commit | aaf7166a9d528636b11a2ad835238589bf650b6e (patch) | |
tree | ad209b2e48d0475a5ff65427ee3ca9a49c1c9851 /cli/main.rs | |
parent | 8b7f5531ee1ccde897e87890e9aabc554fedb9dd (diff) |
refactor(cli): remove unnecessary format! calls (#8315)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 9404a47b2..f35a4c587 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -187,7 +187,7 @@ async fn info_command( if json { write_json_to_stdout(&json!(info))?; } else { - write_to_stdout_ignore_sigpipe(format!("{}", info).as_bytes())?; + write_to_stdout_ignore_sigpipe(info.to_string().as_bytes())?; } Ok(()) } else { |