mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-10 05:37:29 +03:00
Apply a slight stylistic tweak
This commit is contained in:
parent
75ec5c3b1b
commit
2e97e2dbfd
@ -301,9 +301,7 @@ impl Keystroke {
|
||||
}
|
||||
}
|
||||
|
||||
if key.is_none() {
|
||||
return Err(anyhow!("Invalid keystroke `{}`", source));
|
||||
}
|
||||
let key = key.ok_or_else(|| anyhow!("Invalid keystroke `{}`", source))?;
|
||||
|
||||
Ok(Keystroke {
|
||||
ctrl,
|
||||
@ -311,7 +309,7 @@ impl Keystroke {
|
||||
shift,
|
||||
cmd,
|
||||
function,
|
||||
key: key.unwrap(),
|
||||
key,
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user