fix formatting

This commit is contained in:
Chance 2024-12-06 16:55:49 -05:00 committed by BitSyndicate
parent 1fb0ca75ed
commit c38a0ccee3
Signed by untrusted user: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
3 changed files with 19 additions and 23 deletions

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(()),
}
}
}