diff --git a/crates/oyster_parser/src/lexer.rs b/crates/oyster_parser/src/lexer.rs index 03f1097..9c42ddc 100644 --- a/crates/oyster_parser/src/lexer.rs +++ b/crates/oyster_parser/src/lexer.rs @@ -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, diff --git a/crates/oyster_parser/src/parser.rs b/crates/oyster_parser/src/parser.rs index e784a04..d35ca4d 100644 --- a/crates/oyster_parser/src/parser.rs +++ b/crates/oyster_parser/src/parser.rs @@ -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, diff --git a/crates/oyster_runtime/src/pipeline.rs b/crates/oyster_runtime/src/pipeline.rs index f72f341..9709bb5 100644 --- a/crates/oyster_runtime/src/pipeline.rs +++ b/crates/oyster_runtime/src/pipeline.rs @@ -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, };