aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/diagnostics
diff options
context:
space:
mode:
authorChristopher Serr <[email protected]>2021-02-01 16:36:51 +0000
committerChristopher Serr <[email protected]>2021-02-01 16:36:51 +0000
commitb072bbed2a770a87ce6b2e919f1401e3021aef1d (patch)
tree593813edafdf3dba5655a321391cbd028d7e649e /crates/rust-analyzer/src/diagnostics
parent2e8c1d13ad75ac569a707be05eff535f1894a23e (diff)
Update Test Data
Diffstat (limited to 'crates/rust-analyzer/src/diagnostics')
-rw-r--r--crates/rust-analyzer/src/diagnostics/test_data/clippy_pass_by_ref.txt47
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]