Skip to content

Conversation

A4-Tacks
Copy link
Contributor

No description provided.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 20, 2025
@A4-Tacks A4-Tacks force-pushed the stdx-replace-inplace branch from c781a5c to 314ab76 Compare September 20, 2025 04:30
while let Some(i) = buf[..end].rfind(from) {
buf.replace_range(i..i + from_len, to);
end = i;
}
Copy link
Member

@ShoyuVanilla ShoyuVanilla Sep 20, 2025

Choose a reason for hiding this comment

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

The implementation looks great. But seems that we don't have any test for this function so far. Could we have a simple test for this?

@A4-Tacks A4-Tacks force-pushed the stdx-replace-inplace branch from 314ab76 to 29de96c Compare September 20, 2025 13:16
Copy link
Member

@ShoyuVanilla ShoyuVanilla left a comment

Choose a reason for hiding this comment

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

Thanks!

@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Sep 20, 2025
Merged via the queue into rust-lang:master with commit 187917f Sep 20, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 20, 2025
@A4-Tacks A4-Tacks deleted the stdx-replace-inplace branch September 20, 2025 13:48
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