diff options
author | Dmitry Sharshakov | 2021-08-28 16:15:13 +0000 |
---|---|---|
committer | Dmitry Sharshakov | 2021-08-28 16:15:13 +0000 |
commit | af657ef2ec49b93acb26c344be28ee67cb0cae51 (patch) | |
tree | 0ae0d3fc19d3a44fdf102694ef0ff0dfb8abd485 /helix-term | |
parent | 94901b867796459f8dc3c1479eb896547877d769 (diff) |
Fix lints
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/ui/editor.rs | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 09991919..25adc126 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -737,17 +737,15 @@ impl EditorView { let completions = cxt.editor.debug_config_completions.clone().unwrap(); let noop = |_input: &str| Vec::new(); let completer = match completions.get(i) { - Some(Some(completion)) => { - match completion.get(0).and_then(|x| Some(x.as_str())) { - Some("filename") => super::completers::filename, - Some("directory") => super::completers::directory, - Some(complete) => { - warn!("Unknown debug config autocompleter: {}", complete); - noop - } - None => noop, + Some(Some(completion)) => match completion.get(0).map(|x| x.as_str()) { + Some("filename") => super::completers::filename, + Some("directory") => super::completers::directory, + Some(complete) => { + warn!("Unknown debug config autocompleter: {}", complete); + noop } - } + None => noop, + }, _ => noop, }; let prompt = Prompt::new( |