Skip to content

Clean up TopVersions code #3113

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

Merged
merged 7 commits into from
Jan 5, 2021
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 23, 2020

This PR cleans up the code that figures out the highest and newest versions of a crate in several ways. I hope that the commit list gives enough context on the individual changes.

Primarily, this decouples the code from the Version struct, and it moves the 0.0.0 defaulting to the encodable() method of the Krate model, instead of performing that in the low-level code directly.

Like #3067, this PR is also in preparation for resolving #2710.

r? @jtgeibel

@Turbo87 Turbo87 force-pushed the top-version-cleanup branch 5 times, most recently from 884c3bb to ea476d3 Compare December 28, 2020 20:59
@Turbo87 Turbo87 force-pushed the top-version-cleanup branch 2 times, most recently from 75bb6f7 to 004aa95 Compare December 31, 2020 08:48
@Turbo87 Turbo87 force-pushed the top-version-cleanup branch from 004aa95 to 7a71e00 Compare January 3, 2021 08:15
@jtgeibel
Copy link
Member

jtgeibel commented Jan 5, 2021

Looks awesome!

@bors r+

@bors
Copy link
Contributor

bors commented Jan 5, 2021

📌 Commit 7a71e00 has been approved by jtgeibel

@bors
Copy link
Contributor

bors commented Jan 5, 2021

⌛ Testing commit 7a71e00 with merge c2d1818...

@bors
Copy link
Contributor

bors commented Jan 5, 2021

☀️ Test successful - checks-actions
Approved by: jtgeibel
Pushing c2d1818 to master...

@bors bors merged commit c2d1818 into rust-lang:master Jan 5, 2021
@Turbo87 Turbo87 deleted the top-version-cleanup branch January 7, 2021 01:19
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.

4 participants