From a1a13aaf1a849ac38ce0d51e65032d4db92a9903 Mon Sep 17 00:00:00 2001 From: rzmk <30333942+rzmk@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:26:58 -0400 Subject: [PATCH] `prompt`: remove `mut` from `fd` variable to remove warning warning: variable does not need to be mutable --> src\cmd\prompt.rs:162:13 | 162 | let mut fd = FileDialog::new() | ----^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default --- src/cmd/prompt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/prompt.rs b/src/cmd/prompt.rs index c565050f0..28d5c0895 100644 --- a/src/cmd/prompt.rs +++ b/src/cmd/prompt.rs @@ -159,7 +159,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> { let title = args .flag_msg .unwrap_or_else(|| DEFAULT_OUTPUT_TITLE.to_owned()); - let mut fd = FileDialog::new() + let fd = FileDialog::new() .set_directory(args.flag_workdir) .set_title(title) .set_file_name(args.flag_save_fname);