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

Improve fetch algorithm. Ignore yanked when no version is specified. … #100

Merged
merged 1 commit into from
Jan 3, 2017
Merged

Improve fetch algorithm. Ignore yanked when no version is specified. … #100

merged 1 commit into from
Jan 3, 2017

Conversation

sebasgarcep
Copy link
Contributor

Passes all tests. Solves #88.

…Request only versions from server to save bandwith.
Copy link
Owner

@killercup killercup left a comment

Choose a reason for hiding this comment

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

Thanks! I would like to see the code without a for-loop, and add some tests. But don't worry, I'll do that.

I saw you opened #99 as well (thanks for that as well!), so I'll quickly rewrite the loop, add some tests, and put that into a new PR (for CI). Your commits will stay intact and once this new PR is merged this one and #99 will be set to "merged" automatically.

}
}
return None;
})
Copy link
Owner

Choose a reason for hiding this comment

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

I think this can be written more succinctly with .iter().filter() (or find)

killercup added a commit that referenced this pull request Jan 2, 2017
killercup added a commit that referenced this pull request Jan 2, 2017
@killercup killercup mentioned this pull request Jan 2, 2017
@homu homu merged commit 43fb6ff into killercup:master Jan 3, 2017
homu added a commit that referenced this pull request Jan 3, 2017
…rcup

New year, new bugfixes

This is a rollup of #98 (which replaces #78), #99, and #100.

@sebasgarcep and @sinkuu, thank you for your PRs! Do you have time to review this? I've add a few tests and changed to code slightly, before running Rustfmt and Clippy.

Just to make sure Github gets all the references:

Fixes #52
Fixes #88
Fixes #92
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.

3 participants