we don't need tobe explicit here

This commit is contained in:
♥ Minnie ♥ 2025-06-09 20:11:41 +08:00
parent 8decbfb657
commit 998fc9cdca
Signed by: jasmine
GPG key ID: 8563E358D4E8040E

View file

@ -11,7 +11,7 @@ fn resolve_alias(config: &mlua::Table, cmd: &str) -> Option<String> {
config
.get::<mlua::Table>("shellAliases")
.ok()
.and_then(|aliases| aliases.get::<String>(cmd).ok())
.and_then(|aliases| aliases.get(cmd).ok())
}
fn main() {