Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVerevkin committed Aug 25, 2023
1 parent c6e886c commit a790d53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/key.rs
Expand Up @@ -24,7 +24,9 @@ impl FromStr for Key {

fn from_str(s: &str) -> Result<Self, Self::Err> {
let mut chars = s.chars();
let Some(_first_char) = chars.next() else { return Err(()) };
let Some(_first_char) = chars.next() else {
return Err(());
};

if chars.next().is_none() {
return Ok(Self::Char(s.to_owned()));
Expand Down

0 comments on commit a790d53

Please sign in to comment.