Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hacky checksum fail #562

Merged
merged 3 commits into from
Jul 8, 2016
Merged

Conversation

AtheMathmo
Copy link
Contributor

Resolved #524 (sort of...)

The implementation is also worryingly hacky.. Sorry. Please feel free to suggest a cleaner implementation if you see one.

Also it looks like I changed the formatting in places - if that is an issue let me know and I will correct it. Changes to dist.rs begin here

} else {
match *manifest_dl_res.as_ref().unwrap_err().kind() {
// Checksum failed - issue warning to try again later
ErrorKind::ChecksumFailed{url: _, expected: _, calculated: _} => (download.notify_handler)(Notification::ManifestChecksumFailedHack),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace these three wildcard field patterns with { .. }.

@brson
Copy link
Contributor

brson commented Jul 6, 2016

Looks good. Just that one nit to address in the verbose pattern. Thanks!

@AtheMathmo
Copy link
Contributor Author

Thanks, have made your suggested change. (I totally forgot I could pattern match like that :D )

@brson brson merged commit 571ec57 into rust-lang:master Jul 8, 2016
@brson
Copy link
Contributor

brson commented Jul 8, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants