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

Conversation

Projects
None yet
2 participants
@AtheMathmo
Copy link
Contributor

AtheMathmo commented Jul 6, 2016

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),

This comment has been minimized.

@brson

brson Jul 6, 2016

Contributor

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

@brson

This comment has been minimized.

Copy link
Contributor

brson commented Jul 6, 2016

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

@AtheMathmo

This comment has been minimized.

Copy link
Contributor Author

AtheMathmo commented Jul 6, 2016

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

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@brson

This comment has been minimized.

Copy link
Contributor

brson commented Jul 8, 2016

Thanks!

@AtheMathmo AtheMathmo deleted the AtheMathmo:hacky-checksum-fail branch Jul 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.