summaryrefslogtreecommitdiff
path: root/helix-term/src/commands/dap.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-30 07:47:46 +0000
committerBlaž Hrastnik2021-11-30 07:47:46 +0000
commit3633f85b382d6f3e6324d08d880a8466aee67fa1 (patch)
tree18450c0c14e7ae25cd977daee787b6db00991570 /helix-term/src/commands/dap.rs
parent9ed930b2335b86d03e871b52a958d4e9768e0d34 (diff)
Pass editor into render_view & gutter, reducing the number of params
Diffstat (limited to 'helix-term/src/commands/dap.rs')
-rw-r--r--helix-term/src/commands/dap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs
index c9bee70f..2a3d08a2 100644
--- a/helix-term/src/commands/dap.rs
+++ b/helix-term/src/commands/dap.rs
@@ -429,7 +429,7 @@ pub fn dap_toggle_breakpoint_impl(cx: &mut Context, path: std::path::PathBuf, li
Some(debugger) => debugger,
None => return,
};
- let request = debugger.set_breakpoints(path.clone(), breakpoints);
+ let request = debugger.set_breakpoints(path, breakpoints);
match block_on(request) {
Ok(Some(breakpoints)) => {
// TODO: handle breakpoint.message