fix formatting

This commit is contained in:
Chance 2024-12-06 16:55:49 -05:00 committed by BitSyndicate
parent 2999601046
commit f54145e1af
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 443E4198D6BBA6DE
3 changed files with 19 additions and 23 deletions
engine/src/core/repl

View file

@ -3,7 +3,7 @@ pub mod repl;
use std::{borrow::Borrow, collections::HashMap, sync::Arc};
use anyhow::Ok;
use anyhow::Context;
use colored::Colorize;
use lazy_static::lazy_static;
use log::{debug, info};
@ -42,11 +42,7 @@ impl Command {
}
Callable::WithArgs(f) => match args {
Some(args) => f(args),
None => {
Ok(())
},
None => Ok(()),
},
}
}
@ -140,7 +136,7 @@ impl CommandList {
.aliases
.read()
.get_key_value(&name)
.unwrap()
.context("Failed to get alias")?
.1
.to_string();
@ -176,9 +172,7 @@ impl CommandList {
eprintln!("Did you mean: '{}'?", similar.green().italic().bold());
Ok(())
}
None => {
Ok(())
}
None => Ok(()),
}
}
}