Fix rustfmt formatting in server and kiosk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user