Shared: Clippy fixes

This commit is contained in:
Harry Maclean
2023-04-05 16:29:05 +08:00
parent 109ca0dc20
commit a59215f3b9
2 changed files with 3 additions and 4 deletions

View File

@@ -143,7 +143,7 @@ impl LogWriter {
if let Some(mut writer) = self.inner.as_mut() {
serde_json::to_writer(&mut writer, mesg)
.unwrap_or_else(|e| tracing::debug!("Failed to write log entry: {}", e));
&mut writer
writer
.write_all(b"\n")
.unwrap_or_else(|e| tracing::debug!("Failed to write log entry: {}", e));
}

View File

@@ -257,12 +257,11 @@ impl<'a> Visitor<'a> {
"parse-error",
"Could not process some files due to syntax errors",
);
&mesg
.severity(diagnostics::Severity::Warning)
mesg.severity(diagnostics::Severity::Warning)
.location(self.path, start_line, start_column, end_line, end_column)
.message(message, args);
if status_page {
&mesg.status_page();
mesg.status_page();
}
self.record_parse_error(loc, &mesg);
}