Update expected test results

This commit is contained in:
Brandon 2021-12-04 21:26:07 -08:00
parent 0d1910c6fb
commit fa2818551e
10 changed files with 348 additions and 268 deletions

View File

@ -114,7 +114,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -205,7 +205,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -296,8 +296,21 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [ fix: Some(
CodeAction { Fix {
ranges: [
Range {
start: Position {
line: 41,
character: 23,
},
end: Position {
line: 41,
character: 28,
},
},
],
action: CodeAction {
title: "consider passing by value instead: `self`", title: "consider passing by value instead: `self`",
group: None, group: None,
kind: Some( kind: Some(
@ -345,6 +358,7 @@
), ),
data: None, data: None,
}, },
], },
),
}, },
] ]

View File

@ -59,6 +59,6 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
] ]

View File

@ -64,7 +64,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -131,7 +131,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -224,6 +224,6 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
] ]

View File

@ -59,6 +59,6 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
] ]

View File

@ -59,6 +59,6 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
] ]

View File

@ -72,7 +72,7 @@
), ),
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -143,8 +143,21 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [ fix: Some(
CodeAction { Fix {
ranges: [
Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
],
action: CodeAction {
title: "consider prefixing with an underscore: `_foo`", title: "consider prefixing with an underscore: `_foo`",
group: None, group: None,
kind: Some( kind: Some(
@ -192,6 +205,7 @@
), ),
data: None, data: None,
}, },
], },
),
}, },
] ]

View File

@ -72,7 +72,7 @@
), ),
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -143,8 +143,21 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [ fix: Some(
CodeAction { Fix {
ranges: [
Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
],
action: CodeAction {
title: "consider prefixing with an underscore: `_foo`", title: "consider prefixing with an underscore: `_foo`",
group: None, group: None,
kind: Some( kind: Some(
@ -192,6 +205,7 @@
), ),
data: None, data: None,
}, },
], },
),
}, },
] ]

View File

@ -72,7 +72,7 @@
), ),
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -143,8 +143,21 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [ fix: Some(
CodeAction { Fix {
ranges: [
Range {
start: Position {
line: 290,
character: 8,
},
end: Position {
line: 290,
character: 11,
},
},
],
action: CodeAction {
title: "consider prefixing with an underscore: `_foo`", title: "consider prefixing with an underscore: `_foo`",
group: None, group: None,
kind: Some( kind: Some(
@ -192,6 +205,7 @@
), ),
data: None, data: None,
}, },
], },
),
}, },
] ]

View File

@ -88,7 +88,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -179,6 +179,6 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
] ]

View File

@ -114,7 +114,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -205,7 +205,7 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [], fix: None,
}, },
MappedRustDiagnostic { MappedRustDiagnostic {
url: Url { url: Url {
@ -296,8 +296,31 @@
tags: None, tags: None,
data: None, data: None,
}, },
fixes: [ fix: Some(
CodeAction { Fix {
ranges: [
Range {
start: Position {
line: 2,
character: 4,
},
end: Position {
line: 2,
character: 30,
},
},
Range {
start: Position {
line: 3,
character: 4,
},
end: Position {
line: 3,
character: 5,
},
},
],
action: CodeAction {
title: "return the expression directly: `(0..10).collect()`", title: "return the expression directly: `(0..10).collect()`",
group: None, group: None,
kind: Some( kind: Some(
@ -358,6 +381,7 @@
), ),
data: None, data: None,
}, },
], },
),
}, },
] ]