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

Add io::Window::set #1667

Merged
merged 2 commits into from
Jun 13, 2019
Merged

Add io::Window::set #1667

merged 2 commits into from
Jun 13, 2019

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Jun 9, 2019

And removed set_start and set_end.

@@ -65,43 +65,36 @@ impl<T: AsRef<[u8]>> Window<T> {
self.range.end
}

/// Changes the starting index of this window to the index specified.
/// Changes the range of this window to the range specified.
///
/// Returns the windows back to chain multiple calls to this method.
Copy link
Member

Choose a reason for hiding this comment

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

not new to this change, but why would you want to chain multiple calls to this method?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's certainly not necessary because we can now set the range at once with set.

@cramertj cramertj merged commit b232653 into rust-lang:master Jun 13, 2019
@taiki-e taiki-e deleted the io-window branch June 13, 2019 18:28
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