diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 3ed30c6ec..92042498e 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -3160,6 +3160,7 @@ fn file_explorer_in_current_directory(cx: &mut Context) { fn buffer_picker(cx: &mut Context) { let current = view!(cx.editor).doc; + #[allow(unused)] struct BufferMeta { id: DocumentId, path: Option, diff --git a/helix-term/src/commands/engine/steel.rs b/helix-term/src/commands/engine/steel.rs index 87638f1af..1d11e288e 100644 --- a/helix-term/src/commands/engine/steel.rs +++ b/helix-term/src/commands/engine/steel.rs @@ -188,7 +188,7 @@ where res } -pub static BUFFER_EXTENSION_KEYMAP: Lazy> = Lazy::new(|| { +static BUFFER_EXTENSION_KEYMAP: Lazy> = Lazy::new(|| { RwLock::new(BufferExtensionKeyMap { map: HashMap::new(), reverse: HashMap::new(), diff --git a/helix-term/src/ui/document.rs b/helix-term/src/ui/document.rs index cc540b373..964a0a08b 100644 --- a/helix-term/src/ui/document.rs +++ b/helix-term/src/ui/document.rs @@ -3,7 +3,7 @@ use std::cmp::min; use helix_core::doc_formatter::{DocumentFormatter, GraphemeSource, TextFormat}; use helix_core::graphemes::Grapheme; use helix_core::str_utils::char_to_byte_idx; -use helix_core::syntax::{self, Highlight, HighlightEvent, Highlighter, OverlayHighlights}; +use helix_core::syntax::{self, HighlightEvent, Highlighter, OverlayHighlights}; use helix_core::text_annotations::TextAnnotations; use helix_core::{visual_offset_from_block, Position, RopeSlice}; use helix_stdx::rope::RopeSliceExt; diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 9efa799eb..093108013 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -2,8 +2,7 @@ use crate::{ annotations::diagnostics::{DiagnosticFilter, InlineDiagnosticsConfig}, clipboard::ClipboardProvider, document::{ - DocumentOpenError, DocumentSavedEvent, DocumentSavedEventFuture, DocumentSavedEventResult, - Mode, SavePoint, + DocumentOpenError, DocumentSavedEventFuture, DocumentSavedEventResult, Mode, SavePoint, }, events::{DocumentDidClose, DocumentDidOpen, DocumentFocusLost, DocumentSaved}, graphics::{CursorKind, Rect}, diff --git a/helix-view/src/info.rs b/helix-view/src/info.rs index c6ae2a0b5..fa5c4d450 100644 --- a/helix-view/src/info.rs +++ b/helix-view/src/info.rs @@ -39,8 +39,6 @@ impl Info { .unwrap(); let mut text = String::new(); - let mut height = 0; - for (item, desc) in body { let mut line_iter = desc.as_ref().lines(); @@ -52,12 +50,10 @@ impl Info { first_line, width = item_width ); - height += 1; } for line in line_iter { let _ = writeln!(text, "{:width$} {}", "", line, width = item_width); - height += 1; } }