Format Rust sources at 100 columns

This commit is contained in:
Samuel Onoja committed 2026-10-22 01:28:03 +01:00
1 parent 4661f595f8
commit 610478f8c7
336 files changed
+23497 -7892

No files matched your search

+8 -2
View File
@@ -304,11 +304,17 @@ mod tests {
None
})
});
assert_eq!(starts.recv_timeout(Duration::from_secs(2)).unwrap(), "first");
assert_eq!(
starts.recv_timeout(Duration::from_secs(2)).unwrap(),
"first"
);
queue.0.lock().unwrap().pending = Some(key("second"));
queue.0.lock().unwrap().pending = Some(key("latest"));
resume.send(()).unwrap();
assert_eq!(starts.recv_timeout(Duration::from_secs(2)).unwrap(), "latest");
assert_eq!(
starts.recv_timeout(Duration::from_secs(2)).unwrap(),
"latest"
);
queue.0.lock().unwrap().stopped = true;
queue.1.notify_one();
worker.join().unwrap();
+3 -1
View File
@@ -8,5 +8,7 @@ pub(super) fn subscription() -> Subscription<Arc<Snapshot>> {
}
fn stream() -> impl cosmic::iced::futures::Stream<Item = Arc<Snapshot>> {
crate::ipc_subscription::stream("media-get", "media-watch", |snapshot: &Snapshot| snapshot.revision)
crate::ipc_subscription::stream("media-get", "media-watch", |snapshot: &Snapshot| {
snapshot.revision
})
}