Skip to content

Commit 26ed596

Browse files
committed
Fix clippy
1 parent bfd92c1 commit 26ed596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl Display for Error {
212212
match self {
213213
Error::Status(status, response) => {
214214
write!(f, "{}: status code {}", response.get_url(), status)?;
215-
if let Some(original) = response.history.get(0) {
215+
if let Some(original) = response.history.first() {
216216
write!(f, " (redirected from {})", original)?;
217217
}
218218
}

0 commit comments

Comments
 (0)