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;