diff options
Diffstat (limited to 'helix-view/src/input.rs')
-rw-r--r-- | helix-view/src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/input.rs b/helix-view/src/input.rs index bda0520e..d8832adc 100644 --- a/helix-view/src/input.rs +++ b/helix-view/src/input.rs @@ -380,7 +380,7 @@ impl std::str::FromStr for KeyEvent { let function: String = function.chars().skip(1).collect(); let function = str::parse::<u8>(&function)?; (function > 0 && function < 13) - .then(|| KeyCode::F(function)) + .then_some(KeyCode::F(function)) .ok_or_else(|| anyhow!("Invalid function key '{}'", function))? } invalid => return Err(anyhow!("Invalid key code '{}'", invalid)), |