Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
algesten committed Jan 13, 2024
1 parent bfd92c1 commit 26ed596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl Display for Error {
match self {
Error::Status(status, response) => {
write!(f, "{}: status code {}", response.get_url(), status)?;
if let Some(original) = response.history.get(0) {
if let Some(original) = response.history.first() {
write!(f, " (redirected from {})", original)?;
}
}
Expand Down

0 comments on commit 26ed596

Please sign in to comment.