fix: remove unneeded derives
This commit is contained in:
parent
2969d85f5e
commit
bd23c3e40d
3 changed files with 1 additions and 3 deletions
|
@ -39,7 +39,6 @@ pub struct Token {
|
|||
/// which each parse a different sublanguage.
|
||||
/// This makes handling strings, and substitutions in strings, and strings in substitutions in
|
||||
/// strings way easier.
|
||||
#[derive(Debug)]
|
||||
pub struct Lexer<'a> {
|
||||
chars: Chars<'a>,
|
||||
remaining: usize,
|
||||
|
|
|
@ -49,7 +49,6 @@ pub enum ParseEvent {
|
|||
/// instead of returning the tree directly, it returns a linear representation,
|
||||
/// containing instructions on how to construct the trees.
|
||||
/// StartNode(Program) and EndNode at the end is implied.
|
||||
#[derive(Debug)]
|
||||
pub struct Parser<'a> {
|
||||
lex: Lexer<'a>,
|
||||
lookahead: Token,
|
||||
|
|
|
@ -65,7 +65,7 @@ impl<'a> PreparedCommand<'a> {
|
|||
let redirect = command.1;
|
||||
|
||||
let kind = match shell.builtins().get(&cmd) {
|
||||
Some(builtin) => CommandKind::Builtin(builtin),
|
||||
Some(builtin) => CommandKind::Builtin(*builtin),
|
||||
None => CommandKind::External,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue