MappedRustDiagnostic {
url: Url {
scheme: "file",
+ cannot_be_a_base: false,
username: "",
password: None,
host: None,
},
},
severity: Some(
- Information,
+ DiagnosticSeverity(
+ 3,
+ ),
),
code: Some(
String(
location: Location {
uri: Url {
scheme: "file",
+ cannot_be_a_base: false,
username: "",
password: None,
host: None,
},
},
},
- message: "consider prefixing with an underscore",
+ message: "consider prefixing with an underscore: `_foo`",
},
],
),
tags: Some(
[
- Unnecessary,
+ DiagnosticTag(
+ 1,
+ ),
],
),
data: None,
MappedRustDiagnostic {
url: Url {
scheme: "file",
+ cannot_be_a_base: false,
username: "",
password: None,
host: None,
},
},
severity: Some(
- Hint,
+ DiagnosticSeverity(
+ 4,
+ ),
),
code: Some(
String(
source: Some(
"rustc",
),
- message: "consider prefixing with an underscore",
+ message: "consider prefixing with an underscore: `_foo`",
related_information: Some(
[
DiagnosticRelatedInformation {
location: Location {
uri: Url {
scheme: "file",
+ cannot_be_a_base: false,
username: "",
password: None,
host: None,
},
fixes: [
CodeAction {
- title: "consider prefixing with an underscore",
+ title: "consider prefixing with an underscore: `_foo`",
group: None,
kind: Some(
CodeActionKind(
{
Url {
scheme: "file",
+ cannot_be_a_base: false,
username: "",
password: None,
host: None,