diff options
author | arcstur <arcstur@gmail.com> | 2023-09-03 21:09:37 -0300 |
---|---|---|
committer | arcstur <arcstur@gmail.com> | 2023-09-03 21:09:37 -0300 |
commit | 1111fa86642a19cbc9cc16b54680dcd5c25e5fcb (patch) | |
tree | 3f49fce6ffcbab7f422875a523a38bfa72da31ce | |
parent | bb1791d14e64ad83fb57116a24eb913a4946afed (diff) | |
download | rbw-1111fa86642a19cbc9cc16b54680dcd5c25e5fcb.tar.gz rbw-1111fa86642a19cbc9cc16b54680dcd5c25e5fcb.zip |
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.
-rw-r--r-- | src/edit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String> { 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") => { |