ran clippy fix

This commit is contained in:
2026-02-27 11:04:41 -05:00
parent c508180228
commit c559d1cc75
15 changed files with 44 additions and 69 deletions

View File

@@ -1,7 +1,6 @@
use std::fmt::Display;
use crate::{
getopt::Opt,
libsh::term::{Style, Styled},
parse::lex::Span,
prelude::*,
@@ -423,7 +422,7 @@ impl Display for ShErrKind {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let output = match self {
Self::IoErr(e) => &format!("I/O Error: {e}"),
Self::InvalidOpt => &format!("Invalid option"),
Self::InvalidOpt => "Invalid option",
Self::SyntaxErr => "Syntax Error",
Self::ParseErr => "Parse Error",
Self::InternalErr => "Internal Error",

View File

@@ -84,7 +84,7 @@ impl TkVecUtils<Tk> for Vec<Tk> {
}
}
fn debug_tokens(&self) {
for token in self {}
for _token in self {}
}
fn split_at_separators(&self) -> Vec<Vec<Tk>> {
let mut splits = vec![];