exit_code : suppression argument new
This commit is contained in:
parent
6c570cf724
commit
006dc28466
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ use crate::parser::parse;
|
||||||
use crate::variables::Variables;
|
use crate::variables::Variables;
|
||||||
|
|
||||||
pub fn run() {
|
pub fn run() {
|
||||||
let mut current_exit_code = ExitCode::new(0);
|
let mut current_exit_code = ExitCode::new();
|
||||||
let mut variables = Variables::new();
|
let mut variables = Variables::new();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
|
|
@ -3,8 +3,8 @@ pub struct ExitCode {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ExitCode {
|
impl ExitCode {
|
||||||
pub fn new(exit_code: u8) -> Self {
|
pub fn new() -> Self {
|
||||||
Self { exit_code }
|
Self { exit_code: 0 }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get(&self) -> u8 {
|
pub fn get(&self) -> u8 {
|
||||||
|
|
Loading…
Reference in a new issue