From 1111fa86642a19cbc9cc16b54680dcd5c25e5fcb Mon Sep 17 00:00:00 2001 From: arcstur Date: Sun, 3 Sep 2023 21:09:37 -0300 Subject: fix: clippy warning on single_match_else It seems this is a `single_match_else` and not a `single_match`. Now clippy shows no warnings. --- src/edit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edit.rs b/src/edit.rs index aa8c7b1..178e188 100644 --- a/src/edit.rs +++ b/src/edit.rs @@ -30,7 +30,7 @@ pub fn edit(contents: &str, help: &str) -> Result { let editor = std::path::Path::new(&editor); let mut editor_args = vec![]; - #[allow(clippy::single_match)] // more to come + #[allow(clippy::single_match_else)] // more to come match editor.file_name() { Some(editor) => match editor.to_str() { Some("vim" | "nvim") => { -- cgit v1.2.3-54-g00ecf