diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/completion.rs | 2 | ||||
| -rw-r--r-- | src/main.rs | 1 | ||||
| -rw-r--r-- | src/parse/mod.rs | 10 |
3 files changed, 3 insertions, 10 deletions
diff --git a/src/completion.rs b/src/completion.rs index d3e4704..c628bd2 100644 --- a/src/completion.rs +++ b/src/completion.rs @@ -1,4 +1,4 @@ -use crate::parse::{self, CompletionContext}; +use crate::parse; use crate::{BString, Session}; use std::collections::HashMap; use std::ffi::OsStr; diff --git a/src/main.rs b/src/main.rs index a9a0ff0..bcad011 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,7 +39,6 @@ use crate::ctrlc::CtrlC; use crate::cursor::{Direction, move_cursor}; use crate::history::HistoryEntry; use crate::parse::Block; -use crate::run::Executor; macro_rules! print { ($($x:tt)*) => {{ diff --git a/src/parse/mod.rs b/src/parse/mod.rs index 9d3164e..0322c39 100644 --- a/src/parse/mod.rs +++ b/src/parse/mod.rs @@ -1,4 +1,4 @@ -use crate::{BString, run::CommandKind}; +use crate::BString; #[cfg(test)] mod test; @@ -920,12 +920,6 @@ struct SpaceStats { cr: u32, } -impl SpaceStats { - fn is_empty(&self) -> bool { - self.space == 0 && self.tab == 0 && self.lf == 0 && self.cr == 0 - } -} - impl<'a> Cursor<'a> { fn new(buf: &'a [u8], mode: ParseMode) -> Self { Self { @@ -1008,7 +1002,7 @@ impl<'a> Cursor<'a> { } /// returns true if the next thing in the buffer is whitespace (including at least one newline) - /// + /// /// does not modify the buffer fn whitespace_newline(&mut self) -> bool { let x = self.buf; |
