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 <noreply@anthropic.com>
This commit is contained in:
+13
-5
@@ -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),
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user