aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Maier <>2026-03-17 16:39:25 +0100
committerJonas Maier <>2026-03-17 16:39:25 +0100
commitfb3165b5793641f2c56362877572b329f4af50c8 (patch)
tree536751e840ee687eac7ad88da0115606fc31c2c1
parentfb63779507c21b5f0a73fef2dbaa10480b02b126 (diff)
downloadpish-fb3165b5793641f2c56362877572b329f4af50c8.tar.gz
warnings
-rw-r--r--src/completion.rs2
-rw-r--r--src/main.rs1
-rw-r--r--src/parse/mod.rs10
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;