Skip to content

Remove unnecessary to_string#741

Merged
reese merged 1 commit intotrunkfrom
reese-empty-string-alloc
Dec 30, 2025
Merged

Remove unnecessary to_string#741
reese merged 1 commit intotrunkfrom
reese-empty-string-alloc

Conversation

@reese
Copy link
Collaborator

@reese reese commented Dec 30, 2025

taps the sign

@reese reese force-pushed the reese-empty-string-alloc branch from b515c3a to 79df6b3 Compare December 30, 2025 20:51
@reese reese force-pushed the reese-empty-string-alloc branch from 79df6b3 to 7dfe589 Compare December 30, 2025 20:55
pub fn is_single_line_breakable_garbage(&self) -> bool {
match self {
Self::DirectPart { part } => part == &"".to_string(),
Self::DirectPart { part } => part.is_empty(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I have to say, this is not my favorite clippy lint.

@reese reese merged commit 6f827c6 into trunk Dec 30, 2025
8 checks passed
@reese reese deleted the reese-empty-string-alloc branch December 30, 2025 21:01
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