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

fix!: Take in byte spans #90

Merged
merged 2 commits into from
Mar 8, 2024
Merged

fix!: Take in byte spans #90

merged 2 commits into from
Mar 8, 2024

Conversation

Muscraft
Copy link
Member

@Muscraft Muscraft commented Mar 8, 2024

BREAKING CHANGE: This switches from char spans to byte spans

This PR is a draft implementation to address #77. While I think I fixed every issue in moving from char spans to byte spans, I am not entirely certain. I may look into adding more tests to ensure we are doing the write thing. This also doesn't address the fact that people could pass in char spans when updating the version, not realizing the change. We could do something to make it more apparent but I am not sure what that would be.

BREAKING CHANGE: This switches from char spans to byte spans
src/renderer/display_list.rs Outdated Show resolved Hide resolved
BREAKING CHANGE: This changes (usize, usize) into Range<usize>
@Muscraft Muscraft marked this pull request as ready for review March 8, 2024 20:45
@Muscraft Muscraft merged commit 86f2be9 into rust-lang:master Mar 8, 2024
15 checks passed
@Muscraft Muscraft deleted the use-bytes branch March 8, 2024 20:47
This was referenced Mar 13, 2024
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