Skip to content

Commit f4ae8d4

Browse files
committed
Fix PR CI formatting and clippy
1 parent c3794ee commit f4ae8d4

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

client/src/app/AppShell.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ function simulatorDisplayReady(simulator: SimulatorMetadata): boolean {
139139
const display = simulator.privateDisplay;
140140
return Boolean(
141141
simulator.isBooted &&
142-
display?.displayReady &&
143-
display.displayWidth > 0 &&
144-
display.displayHeight > 0,
142+
display?.displayReady &&
143+
display.displayWidth > 0 &&
144+
display.displayHeight > 0,
145145
);
146146
}
147147

docs/guide/video.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ SimDeck streams the iOS Simulator over WebRTC using browser-native H.264 video p
66

77
The server can encode the simulator display in two modes, picked at startup with `--video-codec`:
88

9-
| Value | Encoder | When to use it |
10-
| --------------------------- | ------------------------------- | -------------------------------------------------------------- |
11-
| `h264` _(default)_ | Hardware H.264 via VideoToolbox | Best local performance when the hardware encoder is available. |
12-
| `h264-software` | Software H.264 via VideoToolbox | Compatibility fallback when hardware encode is unavailable. |
9+
| Value | Encoder | When to use it |
10+
| ------------------ | ------------------------------- | -------------------------------------------------------------- |
11+
| `h264` _(default)_ | Hardware H.264 via VideoToolbox | Best local performance when the hardware encoder is available. |
12+
| `h264-software` | Software H.264 via VideoToolbox | Compatibility fallback when hardware encode is unavailable. |
1313

1414
Restart the daemon to change encoder mode:
1515

server/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,10 +1085,8 @@ fn choose_daemon_port_for_bind(preferred: u16, bind: IpAddr) -> anyhow::Result<u
10851085
}
10861086

10871087
fn port_available(bind: IpAddr, port: u16) -> bool {
1088-
if bind.is_unspecified() {
1089-
if TcpListener::bind((Ipv4Addr::LOCALHOST, port)).is_err() {
1090-
return false;
1091-
}
1088+
if bind.is_unspecified() && TcpListener::bind((Ipv4Addr::LOCALHOST, port)).is_err() {
1089+
return false;
10921090
}
10931091
TcpListener::bind((bind, port)).is_ok()
10941092
}

0 commit comments

Comments
 (0)