From f6775da3d0bb9cbda0bfc57120c753bb73d48148 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 24 Aug 2023 12:39:19 -0700 Subject: [PATCH] cargo clippy --fix --- dyesub-cli/src/main.rs | 2 +- dyesub-tool/src/components/resultmessage.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dyesub-cli/src/main.rs b/dyesub-cli/src/main.rs index 2128824..f0da4b1 100644 --- a/dyesub-cli/src/main.rs +++ b/dyesub-cli/src/main.rs @@ -27,6 +27,6 @@ fn main() -> dyesub::Result<()> { path.set_extension("svg"); path }); - dyesub::render_file(&args.input, &output)?; + dyesub::render_file(&args.input, output)?; Ok(()) } diff --git a/dyesub-tool/src/components/resultmessage.rs b/dyesub-tool/src/components/resultmessage.rs index 85460c3..9f9c902 100644 --- a/dyesub-tool/src/components/resultmessage.rs +++ b/dyesub-tool/src/components/resultmessage.rs @@ -18,7 +18,7 @@ impl From> for ResultMessageData { message: value .source() .map(|source| source.to_string()) - .unwrap_or_else(|| "".to_string()), + .unwrap_or_default(), colorway: Colorway::Bad, } }