Skip to content

Commit

Permalink
dist: Fix clippy issue with .expect
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Silverstone <[email protected]>
  • Loading branch information
kinnison committed Sep 29, 2019
1 parent d074054 commit bc43a0b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/dist/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,12 @@ fn update_from_dist_<'a>(
toolchain.date.as_ref().unwrap_or(&fetched),
"%Y-%m-%d",
)
.expect(&format!(
"Malformed manifest date: {:?}",
toolchain.date.as_ref().unwrap_or(&fetched)
)),
.unwrap_or_else(|_| {
panic!(
"Malformed manifest date: {:?}",
toolchain.date.as_ref().unwrap_or(&fetched)
)
}),
)
.pred();

Expand Down

0 comments on commit bc43a0b

Please sign in to comment.