aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonas Maier <>2026-03-07 15:48:00 +0100
committerJonas Maier <>2026-03-07 15:48:00 +0100
commitdee90620847fcd66c1df463607edd4fa1da409cb (patch)
treed7e8a6a6944adff44bf72971047b763eb46417e3 /src
parentd5994393aba17b12b981c20dcde5882a212a1708 (diff)
downloadpish-dee90620847fcd66c1df463607edd4fa1da409cb.tar.gz
remove warning
Diffstat (limited to 'src')
-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
}