Skip to content

Commit a59215f

Browse files
committed
Shared: Clippy fixes
1 parent 109ca0d commit a59215f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

shared/tree-sitter-extractor/src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl LogWriter {
143143
if let Some(mut writer) = self.inner.as_mut() {
144144
serde_json::to_writer(&mut writer, mesg)
145145
.unwrap_or_else(|e| tracing::debug!("Failed to write log entry: {}", e));
146-
&mut writer
146+
writer
147147
.write_all(b"\n")
148148
.unwrap_or_else(|e| tracing::debug!("Failed to write log entry: {}", e));
149149
}

shared/tree-sitter-extractor/src/extractor.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,11 @@ impl<'a> Visitor<'a> {
257257
"parse-error",
258258
"Could not process some files due to syntax errors",
259259
);
260-
&mesg
261-
.severity(diagnostics::Severity::Warning)
260+
mesg.severity(diagnostics::Severity::Warning)
262261
.location(self.path, start_line, start_column, end_line, end_column)
263262
.message(message, args);
264263
if status_page {
265-
&mesg.status_page();
264+
mesg.status_page();
266265
}
267266
self.record_parse_error(loc, &mesg);
268267
}

0 commit comments

Comments
 (0)