We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132b98a commit ad8709dCopy full SHA for ad8709d
1 file changed
src-tauri/src/log_watcher/global_log_watcher.rs
@@ -312,7 +312,7 @@ impl GlobalLogWatcher {
312
313
trace!("Read 0 bytes from both log files, we've reached EOF in both cases.");
314
if !parsed_lines.is_empty() {
315
- parsed_lines.sort_by(|a, b| a.timestamp.cmp(&b.timestamp));
+ parsed_lines.sort_by_key(|a| a.timestamp);
316
trace!("Emitting parsed lines for the frontend");
317
self.handle.emit(&self.event_topic, &parsed_lines)?;
318
trace!("Emitted {} lines to the frontend", parsed_lines.len());
0 commit comments