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

Replace u64 with usize #1931

Merged
merged 1 commit into from
Nov 1, 2019
Merged

Replace u64 with usize #1931

merged 1 commit into from
Nov 1, 2019

Conversation

yjhmelody
Copy link
Contributor

I find that take and skip in std's iterator are using usize rather than u64.

fn skip(self, n: usize) -> Skip<Self>
where
    Self: Sized, 

Is there needed to alter them?

@cramertj
Copy link
Member

cramertj commented Nov 1, 2019

Looks reasonable to me!

@cramertj cramertj merged commit 25d638d into rust-lang:master Nov 1, 2019
@yjhmelody yjhmelody deleted the using-usize branch November 1, 2019 17:46
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