Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoIeni committed Mar 9, 2024
1 parent 15cbe40 commit a2dad23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yoda-taller/src/taller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl YodaTaller {
.people_by_name(name)
.await
.map_err(YodaTallerError::UnexpectedError)?;
let first_match = characters.get(0).ok_or(YodaTallerError::PersonNotFound)?;
let first_match = characters.first().ok_or(YodaTallerError::PersonNotFound)?;
let person_height = &first_match.height;
tracing::Span::current().record("height", person_height);

Expand Down

0 comments on commit a2dad23

Please sign in to comment.