mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
Avoid useless format
This commit is contained in:
parent
3033c3ddbf
commit
3aae785693
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ pub(crate) fn render_tuple_lit(
|
||||||
path: &str,
|
path: &str,
|
||||||
) -> RenderedLiteral {
|
) -> RenderedLiteral {
|
||||||
if snippet_cap.is_none() {
|
if snippet_cap.is_none() {
|
||||||
return RenderedLiteral { literal: format!("{path}"), detail: format!("{path}") };
|
return RenderedLiteral { literal: path.to_string(), detail: path.to_string() };
|
||||||
}
|
}
|
||||||
let completions = fields.iter().enumerate().format_with(", ", |(idx, _), f| {
|
let completions = fields.iter().enumerate().format_with(", ", |(idx, _), f| {
|
||||||
if snippet_cap.is_some() {
|
if snippet_cap.is_some() {
|
||||||
|
|
Loading…
Reference in a new issue