diff options
| author | Jonas Maier <> | 2026-03-17 16:39:25 +0100 |
|---|---|---|
| committer | Jonas Maier <> | 2026-03-17 16:39:25 +0100 |
| commit | fb3165b5793641f2c56362877572b329f4af50c8 (patch) | |
| tree | 536751e840ee687eac7ad88da0115606fc31c2c1 /src/parse | |
| parent | fb63779507c21b5f0a73fef2dbaa10480b02b126 (diff) | |
| download | pish-fb3165b5793641f2c56362877572b329f4af50c8.tar.gz | |
warnings
Diffstat (limited to 'src/parse')
| -rw-r--r-- | src/parse/mod.rs | 10 |
1 files changed, 2 insertions, 8 deletions
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; |
