Migrate rustfmt style to 2024 edition
This commit is contained in:
parent
25d2cc7c98
commit
816d8f86a3
24 changed files with 31 additions and 32 deletions
|
|
@ -3,7 +3,7 @@ use std::num::ParseIntError;
|
|||
use std::str::FromStr;
|
||||
|
||||
use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};
|
||||
use serde::{de::Error, Deserialize, Deserializer};
|
||||
use serde::{Deserialize, Deserializer, de::Error};
|
||||
use serde::{Serialize, Serializer};
|
||||
use serde_either::SingleOrVec;
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ impl KeyPress {
|
|||
"alt" if !self.alt => self.alt = true,
|
||||
"any" if !self.shift && !self.ctrl && !self.alt => self.any = true,
|
||||
m @ ("shift" | "ctrl" | "alt" | "any") => {
|
||||
return Err(ParseKeysError::ConflictingModifier(m.to_string()))
|
||||
return Err(ParseKeysError::ConflictingModifier(m.to_string()));
|
||||
}
|
||||
m => return Err(ParseKeysError::UnknownModifier(m.to_string())),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue