Fix rustfmt formatting in server and kiosk

This commit is contained in:
2026-08-09 19:54:00 -04:00
parent 77bc93e70f
commit f6487f00e3
11 changed files with 57 additions and 40 deletions
@@ -95,12 +95,12 @@ impl RoomHandle {
fn handle_event(app: &AppHandle, generation: u64, event: RoomEvent) {
match event {
RoomEvent::Connected { .. } => emit_status(app, generation, StatusPayload::new("connected")),
RoomEvent::Reconnecting => {
emit_status(app, generation, StatusPayload::new("reconnecting"))
RoomEvent::Connected { .. } => {
emit_status(app, generation, StatusPayload::new("connected"))
}
RoomEvent::Reconnecting => emit_status(app, generation, StatusPayload::new("reconnecting")),
RoomEvent::Reconnected => emit_status(app, generation, StatusPayload::new("connected")),
RoomEvent::Disconnected { reason } => {
@@ -29,13 +29,7 @@ pub const PRIORITY_SCREEN: u8 = 2;
///
/// Frames are converted to BGRA, which on a little endian machine is the same layout as
/// cairo's ARgb32, and handed to the native drawing surface sitting under the webview.
pub fn start(
app: AppHandle,
generation: u64,
track: RemoteVideoTrack,
priority: u8,
sid: String,
) {
pub fn start(app: AppHandle, generation: u64, track: RemoteVideoTrack, priority: u8, sid: String) {
// A camera must not displace a screen share that is already on the display.
if IS_STREAMING.load(Ordering::SeqCst) && CURRENT_PRIORITY.load(Ordering::SeqCst) > priority {
return;