Skip to content

Commit b072bbe

Browse files
committed
Update Test Data
1 parent 2e8c1d1 commit b072bbe

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,51 @@
266266
tags: None,
267267
data: None,
268268
},
269-
fixes: [],
269+
fixes: [
270+
CodeAction {
271+
title: "consider passing by value instead",
272+
group: None,
273+
kind: Some(
274+
CodeActionKind(
275+
"quickfix",
276+
),
277+
),
278+
edit: Some(
279+
SnippetWorkspaceEdit {
280+
changes: Some(
281+
{
282+
Url {
283+
scheme: "file",
284+
host: None,
285+
port: None,
286+
path: "/test/compiler/mir/tagset.rs",
287+
query: None,
288+
fragment: None,
289+
}: [
290+
TextEdit {
291+
range: Range {
292+
start: Position {
293+
line: 41,
294+
character: 23,
295+
},
296+
end: Position {
297+
line: 41,
298+
character: 28,
299+
},
300+
},
301+
new_text: "self",
302+
},
303+
],
304+
},
305+
),
306+
document_changes: None,
307+
},
308+
),
309+
is_preferred: Some(
310+
true,
311+
),
312+
data: None,
313+
},
314+
],
270315
},
271316
]

0 commit comments

Comments
 (0)