diff options
Diffstat (limited to 'src/runner/mod.rs')
-rw-r--r-- | src/runner/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runner/mod.rs b/src/runner/mod.rs index 622bdd7..09eb539 100644 --- a/src/runner/mod.rs +++ b/src/runner/mod.rs @@ -69,7 +69,7 @@ enum Frame { } pub async fn run( - commands: &str, + commands: String, shell_write: &mut Option<tokio::fs::File>, ) -> Result<i32> { let mut env = Env::new_from_env()?; @@ -84,11 +84,11 @@ pub async fn run( } async fn run_commands( - commands: &str, + commands: String, env: &mut Env, shell_write: &mut Option<tokio::fs::File>, ) -> Result<()> { - let commands = crate::parse::ast::Commands::parse(commands)?; + let commands = crate::parse::ast::Commands::parse(&commands)?; let commands = commands.commands(); let mut pc = 0; let mut stack = Stack::new(); |