From b072bbed2a770a87ce6b2e919f1401e3021aef1d Mon Sep 17 00:00:00 2001 From: Christopher Serr Date: Mon, 1 Feb 2021 17:36:51 +0100 Subject: Update Test Data --- .../diagnostics/test_data/clippy_pass_by_ref.txt | 47 +++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) (limited to 'crates/rust-analyzer/src/diagnostics') 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 @@ tags: None, data: None, }, - fixes: [], + fixes: [ + CodeAction { + title: "consider passing by value instead", + group: None, + kind: Some( + CodeActionKind( + "quickfix", + ), + ), + edit: Some( + SnippetWorkspaceEdit { + changes: Some( + { + Url { + scheme: "file", + host: None, + port: None, + path: "/test/compiler/mir/tagset.rs", + query: None, + fragment: None, + }: [ + TextEdit { + range: Range { + start: Position { + line: 41, + character: 23, + }, + end: Position { + line: 41, + character: 28, + }, + }, + new_text: "self", + }, + ], + }, + ), + document_changes: None, + }, + ), + is_preferred: Some( + true, + ), + data: None, + }, + ], }, ] -- cgit v1.2.3