Skip to content

refactorings and FIXME fixes in text edit #11573

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 3 commits into from
Feb 27, 2022

Conversation

Isokaeder
Copy link

@Isokaeder Isokaeder commented Feb 27, 2022

This is mainly me learning some rust, and only anecdotally about addressing some fixmes. Feel free to nope :)

There is a follow up PR in the pipeline which tackles the other two fixmes but it's a bit more invasive. So I wanted to get this out of the way

@Isokaeder Isokaeder force-pushed the small-refactor-text-edit branch 2 times, most recently from 2b51acb to ff59147 Compare February 27, 2022 11:53
text_edit.apply(&mut text);

assert_eq!(text, "_1111_2222_3333_4444_5555_6666")
}
Copy link
Member

Choose a reason for hiding this comment

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

Nit: please add the trailing newline.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, never mind.

@lnicola
Copy link
Member

lnicola commented Feb 27, 2022

bors r+

changelog internal (first contribution) reuse buffer in TextEdit::apply and add tests.

@bors
Copy link
Contributor

bors bot commented Feb 27, 2022

@bors bors bot merged commit 4e72700 into rust-lang:master Feb 27, 2022
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