forked from nonsensical-dev/zenyx-engine
fix formatting
This commit is contained in:
parent
1fb0ca75ed
commit
c38a0ccee3
3 changed files with 19 additions and 23 deletions
|
@ -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(()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue