diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt b/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt index 7576097b3..ce80476fb 100644 --- a/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt +++ b/crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt | |||
@@ -266,6 +266,51 @@ | |||
266 | tags: None, | 266 | tags: None, |
267 | data: None, | 267 | data: None, |
268 | }, | 268 | }, |
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 | ], | ||
270 | }, | 315 | }, |
271 | ] | 316 | ] |