diff options
author | Blaž Hrastnik | 2022-03-08 01:33:40 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-03-08 01:33:40 +0000 |
commit | 5a60989efe006e2d3d27a4b8711b6a118743dadd (patch) | |
tree | f577b756900f7581b68534832212c374a7aee274 /helix-term/src | |
parent | 9a04064373391d6cc2b9e6c61498e778d22f27f0 (diff) |
Bump dependencies
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands/dap.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs index ae76a26a..cba293e2 100644 --- a/helix-term/src/commands/dap.rs +++ b/helix-term/src/commands/dap.rs @@ -190,7 +190,7 @@ pub fn dap_start_impl( let config = doc .language_config() .and_then(|config| config.debugger.as_ref()) - .ok_or(anyhow!("No debug adapter available for language"))?; + .ok_or_else(|| anyhow!("No debug adapter available for language"))?; let result = match socket { Some(socket) => block_on(Client::tcp(socket, 0)), @@ -220,7 +220,7 @@ pub fn dap_start_impl( Some(name) => config.templates.iter().find(|t| t.name == name), None => config.templates.get(0), } - .ok_or(anyhow!("No debug config with given name"))?; + .ok_or_else(|| anyhow!("No debug config with given name"))?; let mut args: HashMap<&str, Value> = HashMap::new(); |