mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Shared: Clippy fixes
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user