Skip to content

Commit 6f827c6

Browse files
authored
Remove unnecessary to_string (#741)
1 parent 6e5ff53 commit 6f827c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

librubyfmt/src/line_tokens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ impl ConcreteLineToken {
159159

160160
pub fn is_single_line_breakable_garbage(&self) -> bool {
161161
match self {
162-
Self::DirectPart { part } => part == &"".to_string(),
162+
Self::DirectPart { part } => part.is_empty(),
163163
Self::Space => true,
164164
_ => false,
165165
}

0 commit comments

Comments
 (0)