diff options
author | ZJPzjp | 2023-05-11 05:44:52 +0000 |
---|---|---|
committer | GitHub | 2023-05-11 05:44:52 +0000 |
commit | 3b8c15618f51889ffd2f2f4be32f8404c1517956 (patch) | |
tree | e3083a28d98fe1faf45fc37b9bdd28340fd6186e /helix-term/src | |
parent | 1e5997dc98ecd82b09ccee9fbe8d5350fd333fad (diff) |
Fix warnings from clippy (#7013)
* Fix warnings from clippy
* revert MAIN_SEPARATOR_STR
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/ui/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index fd8e8fb2..1ecbc8cc 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -103,7 +103,7 @@ impl EditorView { // Set DAP highlights, if needed. if let Some(frame) = editor.current_stack_frame() { - let dap_line = frame.line.saturating_sub(1) as usize; + let dap_line = frame.line.saturating_sub(1); let style = theme.get("ui.highlight.frameline"); let line_decoration = move |renderer: &mut TextRenderer, pos: LinePos| { if pos.doc_line != dap_line { |