Skip to content

Commit

Permalink
course: fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
figsoda committed Sep 16, 2024
1 parent 004fa04 commit c304528
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/course.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ fn get_course_props<A>(
.into_string()
.wrap_err("failed to parse the course calendar")?,
))
.map_err(|e| eyre!("{e}").wrap_err("failed to parse the course calendar"))?
.get(0)
.map_err(|e| eyre!("{e}").wrap_err("failed to parse the course calendar"))?.first()
.and_then(|root| {
root.components
.iter()
Expand Down

0 comments on commit c304528

Please sign in to comment.