Skip to content

Commit 4953272

Browse files
committed
fix: use to_owned instead of to_string on &str in test helper
1 parent c459dcc commit 4953272

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/ide-assists/src/handlers/inline_const_as_literal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ mod tests {
176176
/// types we now annotate the literal with its type suffix to preserve type info
177177
/// across the inlining (see `numeric_type_suffix`).
178178
fn expected_inlined(ty: &str, val: &str, kind: u8) -> String {
179-
if kind == NUMBER { format!("{val}{ty}") } else { val.to_string() }
179+
if kind == NUMBER { format!("{val}{ty}") } else { val.to_owned() }
180180
}
181181

182182
// -----------Not supported-----------

0 commit comments

Comments
 (0)