Skip to content

minor: Clarify that SmolStr doesn't allocate when cloning#22228

Merged
ChayimFriedman2 merged 2 commits intorust-lang:masterfrom
Enyium:patch-1
Apr 30, 2026
Merged

minor: Clarify that SmolStr doesn't allocate when cloning#22228
ChayimFriedman2 merged 2 commits intorust-lang:masterfrom
Enyium:patch-1

Conversation

@Enyium
Copy link
Copy Markdown
Contributor

@Enyium Enyium commented Apr 30, 2026

Technically, O(1) doesn't imply this, but it may also not be clear to everyone that it makes this very probable.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 30, 2026
Copy link
Copy Markdown
Contributor

@ChayimFriedman2 ChayimFriedman2 left a comment

Choose a reason for hiding this comment

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

@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Apr 30, 2026
Merged via the queue into rust-lang:master with commit 5256f7b Apr 30, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 30, 2026
@Enyium Enyium deleted the patch-1 branch May 1, 2026 02:47
@lnicola lnicola changed the title Clarify that SmolStr doesn't allocate when cloning minor: Clarify that SmolStr doesn't allocate when cloning May 1, 2026
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