Fix clippy warning
This commit is contained in:
parent
db529688e9
commit
3a3d42bcf3
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ impl FromStr for KeyPress {
|
|||
let mut parts = s.split('+');
|
||||
let code = parts.next_back().ok_or(ParseKeysError::NoKeyCode)?;
|
||||
|
||||
let mut keys = KeyPress::parse_key_code(code)?;
|
||||
let mut keys = Self::parse_key_code(code)?;
|
||||
let shift_allowed = !conflicts_with_shift(keys.code);
|
||||
for modifier in parts {
|
||||
keys.parse_modifier(modifier, shift_allowed)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue