Ruby: fix formatting errors

This commit is contained in:
Arthur Baars
2023-03-15 13:45:06 +01:00
committed by GitHub
parent 5de0eae992
commit fe34ec1378

View File

@@ -253,9 +253,10 @@ impl<'a> Visitor<'a> {
end_line,
end_column,
);
let mut mesg = self
.diagnostics_writer
.new_entry("parse-error", "Could not process some files due to syntax errors");
let mut mesg = self.diagnostics_writer.new_entry(
"parse-error",
"Could not process some files due to syntax errors",
);
&mesg
.severity(diagnostics::Severity::Warning)
.location(self.path, start_line, start_column, end_line, end_column)
@@ -367,7 +368,10 @@ impl<'a> Visitor<'a> {
self.record_parse_error(
loc,
self.diagnostics_writer
.new_entry("parse-error", "Could not process some files due to syntax errors")
.new_entry(
"parse-error",
"Could not process some files due to syntax errors",
)
.severity(diagnostics::Severity::Warning)
.location(self.path, start_line, start_column, end_line, end_column)
.message(