address warnings

pull/8675/head
Matt Paras 2025-06-14 12:31:30 -07:00
parent 2fe135cf7d
commit c1b5ff2305
5 changed files with 4 additions and 8 deletions

View File

@ -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<PathBuf>,

View File

@ -188,7 +188,7 @@ where
res
}
pub static BUFFER_EXTENSION_KEYMAP: Lazy<RwLock<BufferExtensionKeyMap>> = Lazy::new(|| {
static BUFFER_EXTENSION_KEYMAP: Lazy<RwLock<BufferExtensionKeyMap>> = Lazy::new(|| {
RwLock::new(BufferExtensionKeyMap {
map: HashMap::new(),
reverse: HashMap::new(),

View File

@ -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;

View File

@ -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},

View File

@ -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;
}
}