From 52ab374b74b265876aa95da2d59f65a8f30364f8 Mon Sep 17 00:00:00 2001 From: Mollusk Date: Thu, 16 Jul 2026 23:45:18 -0400 Subject: [PATCH] style: cargo fmt under rustfmt 1.9.0 (toolchain update 2026-07-08) Six diffs across four files: the 2026-07-08 stable toolchain update (rustc 1.96.1 / rustfmt 1.9.0) re-flags code that was fmt-clean when committed under the previous rustfmt. No semantic change. Co-Authored-By: Claude Fable 5 --- src/app/mod.rs | 18 +++++++++++++----- src/screenshare/mod.rs | 6 +++++- src/widget/context_input.rs | 6 +++++- tests/transport_loopback.rs | 4 +++- 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/src/app/mod.rs b/src/app/mod.rs index e0c7179..8b1b641 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -6239,7 +6239,11 @@ fn view(state: &AppState) -> Element<'_, AppMessage> { // Rendered only while the audio link is live — the // Connecting/Reconnecting indicator covers the rest. if let Some(info) = state.conn_stats.get(peer_id) { - let dot_color = if info.relay { color_yellow } else { color_green }; + let dot_color = if info.relay { + color_yellow + } else { + color_green + }; let badge = row![ text("●").size(9).color(dot_color), text(conn_badge_label(info)).size(11).color(color_subtext), @@ -6248,7 +6252,9 @@ fn view(state: &AppState) -> Element<'_, AppMessage> { .align_y(iced::alignment::Vertical::Center); let detail = column![ text(conn_tooltip_path(info)).size(11).color(color_text), - text(conn_loss_label(info.loss_pct)).size(11).color(color_subtext), + text(conn_loss_label(info.loss_pct)) + .size(11) + .color(color_subtext), text(format!( "↑ {} ↓ {}", conn_rate_label(info.up_kbps), @@ -6261,9 +6267,11 @@ fn view(state: &AppState) -> Element<'_, AppMessage> { name_col = name_col.push( tooltip( badge, - container(detail) - .padding(8) - .style(c_style(color_crust, color_surface, 6.0)), + container(detail).padding(8).style(c_style( + color_crust, + color_surface, + 6.0, + )), iced::widget::tooltip::Position::Bottom, ) .gap(6), diff --git a/src/screenshare/mod.rs b/src/screenshare/mod.rs index 76dbf17..04a890c 100644 --- a/src/screenshare/mod.rs +++ b/src/screenshare/mod.rs @@ -374,7 +374,11 @@ pub async fn spawn_host( // Log the exact argv we hand pixelpass so a field log can confirm which // encode/quality flags (e.g. --bitrate) actually reached the host — these // are local flags with no ticket/secret, so logging them verbatim is safe. - crate::log_msg(&format!("pixelpass host spawn: {} {}", bin.display(), args.join(" "))); + crate::log_msg(&format!( + "pixelpass host spawn: {} {}", + bin.display(), + args.join(" ") + )); let mut child = Command::new(bin) .args(&args) .stdin(Stdio::null()) diff --git a/src/widget/context_input.rs b/src/widget/context_input.rs index ea5ca30..8acbc19 100644 --- a/src/widget/context_input.rs +++ b/src/widget/context_input.rs @@ -766,7 +766,11 @@ where } } MenuAction::Paste => { - let clip = sanitize_clip(&clipboard.read(clipboard::Kind::Standard).unwrap_or_default()); + let clip = sanitize_clip( + &clipboard + .read(clipboard::Kind::Standard) + .unwrap_or_default(), + ); let edit = paste(self.value, start, end, &clip); self.publish_paste(edit, shell); diff --git a/tests/transport_loopback.rs b/tests/transport_loopback.rs index 731c912..2eb86d7 100644 --- a/tests/transport_loopback.rs +++ b/tests/transport_loopback.rs @@ -304,7 +304,9 @@ async fn connection_stats_report_a_direct_path_with_live_counters() { assert_eq!(info.remote_addr, s2.remote_addr); assert!(info.rtt_ms < 1000, "localhost RTT should be sane"); assert!( - info.up_kbps.expect("same path + positive window has a rate") > 0.0, + info.up_kbps + .expect("same path + positive window has a rate") + > 0.0, "audio was flowing, so the upstream rate must be non-zero" ); }