fix: remove unneeded derives

This commit is contained in:
buffet 2022-10-20 14:00:17 +00:00
parent 2969d85f5e
commit bd23c3e40d
3 changed files with 1 additions and 3 deletions

View file

@ -39,7 +39,6 @@ pub struct Token {
/// which each parse a different sublanguage. /// which each parse a different sublanguage.
/// This makes handling strings, and substitutions in strings, and strings in substitutions in /// This makes handling strings, and substitutions in strings, and strings in substitutions in
/// strings way easier. /// strings way easier.
#[derive(Debug)]
pub struct Lexer<'a> { pub struct Lexer<'a> {
chars: Chars<'a>, chars: Chars<'a>,
remaining: usize, remaining: usize,

View file

@ -49,7 +49,6 @@ pub enum ParseEvent {
/// instead of returning the tree directly, it returns a linear representation, /// instead of returning the tree directly, it returns a linear representation,
/// containing instructions on how to construct the trees. /// containing instructions on how to construct the trees.
/// StartNode(Program) and EndNode at the end is implied. /// StartNode(Program) and EndNode at the end is implied.
#[derive(Debug)]
pub struct Parser<'a> { pub struct Parser<'a> {
lex: Lexer<'a>, lex: Lexer<'a>,
lookahead: Token, lookahead: Token,

View file

@ -65,7 +65,7 @@ impl<'a> PreparedCommand<'a> {
let redirect = command.1; let redirect = command.1;
let kind = match shell.builtins().get(&cmd) { let kind = match shell.builtins().get(&cmd) {
Some(builtin) => CommandKind::Builtin(builtin), Some(builtin) => CommandKind::Builtin(*builtin),
None => CommandKind::External, None => CommandKind::External,
}; };