From 9492197392ecfef6c0fdcde23773fb508fb8d049 Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman <4752801+elizabethengelman@users.noreply.github.com> Date: Tue, 30 Jan 2024 12:26:16 -0500 Subject: [PATCH] Clippy --- cmd/soroban-cli/src/commands/contract/init.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/soroban-cli/src/commands/contract/init.rs b/cmd/soroban-cli/src/commands/contract/init.rs index fff056a840..5d22d4a0c9 100644 --- a/cmd/soroban-cli/src/commands/contract/init.rs +++ b/cmd/soroban-cli/src/commands/contract/init.rs @@ -41,7 +41,7 @@ fn possible_example_values() -> ValueParser { } // If fetching with example contracts fails, return a string parser that will allow for any value. It will be ignored in `init`. - ValueParser::string().into() + ValueParser::string() } fn with_example_help() -> String { @@ -293,7 +293,7 @@ fn copy_frontend_files(from: &Path, to: &Path, template: &FrontendTemplate) { println!("ℹ️ Initializing with {template:?} frontend template"); match template { FrontendTemplate::Astro => { - let _ = copy_contents(&from, to); + let _ = copy_contents(from, to); let _ = edit_package_json_files(to); } FrontendTemplate::None => {}