Skip to content

Commit ad8709d

Browse files
committed
clippy2
1 parent 132b98a commit ad8709d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src-tauri/src/log_watcher/global_log_watcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ impl GlobalLogWatcher {
312312

313313
trace!("Read 0 bytes from both log files, we've reached EOF in both cases.");
314314
if !parsed_lines.is_empty() {
315-
parsed_lines.sort_by(|a, b| a.timestamp.cmp(&b.timestamp));
315+
parsed_lines.sort_by_key(|a| a.timestamp);
316316
trace!("Emitting parsed lines for the frontend");
317317
self.handle.emit(&self.event_topic, &parsed_lines)?;
318318
trace!("Emitted {} lines to the frontend", parsed_lines.len());

0 commit comments

Comments
 (0)