aboutsummaryrefslogtreecommitdiffstats
path: root/src/run
diff options
context:
space:
mode:
Diffstat (limited to 'src/run')
-rw-r--r--src/run/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/run/mod.rs b/src/run/mod.rs
index 3b48f75..c6d2363 100644
--- a/src/run/mod.rs
+++ b/src/run/mod.rs
@@ -148,7 +148,7 @@ impl Executor {
threads.push(handle);
}
- CommandKind::Fun(ast) => {
+ CommandKind::Fun(_ast) => {
todo!()
}
}
@@ -372,7 +372,7 @@ pub fn get_command_kind(se: &Session, cmd: &bstr) -> CommandKind {
} else if let Some(fun) = se.funs.get(cmd) {
CommandKind::Fun(fun.clone())
} else if let Some(builtin) = se.builtins.get(cmd) {
- CommandKind::Builtin(builtin.clone())
+ CommandKind::Builtin(*builtin)
} else {
path_cmd
}