diff options
| author | Jonas Maier <> | 2026-03-05 13:54:50 +0100 |
|---|---|---|
| committer | Jonas Maier <> | 2026-03-05 13:54:50 +0100 |
| commit | fc2043d153bb3b38e0cc7c3ce3bfae621858e0b5 (patch) | |
| tree | 30603a1f2806d5dc408bf3cdc55914f0d2c95169 /src/run/mod.rs | |
| parent | 727861b38f067b5c162cae2158854e4aec587544 (diff) | |
| download | pish-fc2043d153bb3b38e0cc7c3ce3bfae621858e0b5.tar.gz | |
from command and a few cosmetic changes
Diffstat (limited to 'src/run/mod.rs')
| -rw-r--r-- | src/run/mod.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/run/mod.rs b/src/run/mod.rs index 8eb7ad8..47bf175 100644 --- a/src/run/mod.rs +++ b/src/run/mod.rs @@ -142,6 +142,7 @@ pub fn run(se: &mut Session, cmd: Vec<u8>) { let _ = std::io::stdout().lock().flush(); } +#[allow(unused_variables)] pub trait Builtin: Send + Sync { fn name(&self) -> &str; @@ -160,13 +161,14 @@ pub trait Builtin: Send + Sync { } const BUILTINS: &[&'static dyn Builtin] = &[ - &builtin::Cd, - &builtin::Clear, + &builtin::cd, + &builtin::clear, #[cfg(debug_assertions)] - &builtin::Re, + &builtin::re, &builtin::sink("to", false), &builtin::sink("into", false), &builtin::sink("append", true), + &builtin::from, ]; pub struct CommandDispatch { |
