Skip to content

Commit 3aae785

Browse files
committed
Avoid useless format
1 parent 3033c3d commit 3aae785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide-completion/src/render/variant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub(crate) fn render_tuple_lit(
4949
path: &str,
5050
) -> RenderedLiteral {
5151
if snippet_cap.is_none() {
52-
return RenderedLiteral { literal: format!("{path}"), detail: format!("{path}") };
52+
return RenderedLiteral { literal: path.to_string(), detail: path.to_string() };
5353
}
5454
let completions = fields.iter().enumerate().format_with(", ", |(idx, _), f| {
5555
if snippet_cap.is_some() {

0 commit comments

Comments
 (0)