From fd9b826f2c124ce1983191dd632f3e9ca37ba74c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Sun, 7 Nov 2021 18:15:11 +0900 Subject: [PATCH] dap: Inline empty completer --- helix-term/src/commands/dap.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs index de1b2078..7d438a30 100644 --- a/helix-term/src/commands/dap.rs +++ b/helix-term/src/commands/dap.rs @@ -364,11 +364,10 @@ fn debug_parameter_prompt( _ => "".to_owned(), }; - let noop = |_input: &str| Vec::new(); let completer = match &field_type[..] { "filename" => ui::completers::filename, "directory" => ui::completers::directory, - _ => noop, + _ => |_input: &str| Vec::new(), }; Prompt::new( format!("{}: ", name).into(),