diff --git a/src/tui/filter.rs b/src/tui/filter.rs index 6275ab6..af97065 100644 --- a/src/tui/filter.rs +++ b/src/tui/filter.rs @@ -2,7 +2,7 @@ use regex::bytes::Regex; use crate::tui::{ log_viewer::{FieldMatcher, InputTarget, LogViewer}, - model::{LogEntry, pretty_print_value}, + model::LogEntry, }; pub enum MatcherValue { diff --git a/src/tui/mod.rs b/src/tui/mod.rs index fed84f1..f963c70 100644 --- a/src/tui/mod.rs +++ b/src/tui/mod.rs @@ -89,7 +89,7 @@ fn setup_terminal() -> io::Result>> { Terminal::new(CrosstermBackend::new(stdout)) } -fn teardown_terminal(terminal: &mut Terminal>) -> io::Result<()> { +fn teardown_terminal(_terminal: &mut Terminal>) -> io::Result<()> { let mut stdout = io::stdout(); crossterm::terminal::disable_raw_mode()?; crossterm::execute!(stdout, LeaveAlternateScreen, DisableMouseCapture,)?; diff --git a/src/tui/model.rs b/src/tui/model.rs index 99d1fa7..cb527ac 100644 --- a/src/tui/model.rs +++ b/src/tui/model.rs @@ -80,13 +80,6 @@ impl LogEntry { } } - pub fn get(&self, index: usize) -> Option> { - match self { - LogEntry::Single { .. } => None, - LogEntry::Sub { sub_entries, .. } => sub_entries.get(index).cloned(), - } - } - pub fn all_fields(&self) -> LogFields { match self { LogEntry::Single { raw } => raw.all_fields(), diff --git a/src/tui/processing.rs b/src/tui/processing.rs index b4d380e..29cff53 100644 --- a/src/tui/processing.rs +++ b/src/tui/processing.rs @@ -109,7 +109,7 @@ macro_rules! generate_candidate { ($_self: tt, $iter_method: ident, $forwards: expr) => { loop { let stack_len = $_self.stack.len(); - let (enclosing, top) = $_self.stack.last_mut().unwrap(); + let (_enclosing, top) = $_self.stack.last_mut().unwrap(); if let Some((top, inline_depth)) = top.$iter_method() { // if we can find it in the top of stack iterator, neat! return Some((top, inline_depth));