diff --git a/src/command.rs b/src/command.rs index 8d2db2f..128556b 100644 --- a/src/command.rs +++ b/src/command.rs @@ -4,10 +4,6 @@ pub struct ExitCode { exit_code: u8, } -pub trait Command { - fn spawn(&self) -> ExitCode; -} - impl ExitCode { pub fn new(exit_code: u8) -> Self { Self { exit_code } @@ -18,6 +14,10 @@ impl ExitCode { } } +pub trait Command { + fn spawn(&self) -> ExitCode; +} + pub struct UnixProgram { argv: Vec, }