Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Icerath committed Jan 11, 2025
1 parent 91c1ce7 commit c84cd65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/uci/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ impl FromStr for Uci {
}

impl Uci {
#[must_use]
pub fn parse(input: &str) -> Option<Self> {
let mut tokens = Lexer::new(input);

Expand Down Expand Up @@ -42,8 +43,8 @@ impl Uci {
};
match token.as_str() {
"later" => break Some(Uci::Register(Registration::Later)),
"name" => name = tokens.bump().map(String::from),
"code" => code = tokens.bump().map(String::from),
"name" => name = tokens.bump(),
"code" => code = tokens.bump(),
_ => continue,
}
}
Expand Down

0 comments on commit c84cd65

Please sign in to comment.