exit_code : suppression argument new

This commit is contained in:
Ahurac 2024-04-19 15:46:49 +02:00
parent 6c570cf724
commit 006dc28466
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ use crate::parser::parse;
use crate::variables::Variables;
pub fn run() {
let mut current_exit_code = ExitCode::new(0);
let mut current_exit_code = ExitCode::new();
let mut variables = Variables::new();
loop {

View file

@ -3,8 +3,8 @@ pub struct ExitCode {
}
impl ExitCode {
pub fn new(exit_code: u8) -> Self {
Self { exit_code }
pub fn new() -> Self {
Self { exit_code: 0 }
}
pub fn get(&self) -> u8 {