From 5abaeb2c003e21af70dfb1120820feb89f8764e0 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Mon, 24 Feb 2020 15:19:03 +0600 Subject: [PATCH] Fix Clippy --- .gitignore | 4 +++- src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2c96eb1b..f940c081 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ -target/ +target Cargo.lock +.idea +.vscode diff --git a/src/lib.rs b/src/lib.rs index 6cf20baa..fa3a408b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -85,7 +85,7 @@ pub fn derive_telegram_command_enum(tokens: TokenStream) -> TokenStream { info.description .as_deref() .map(|e| format!(" - {}", e)) - .unwrap_or(String::new()) + .unwrap_or_default() }); let ident = &input.ident;