Skip to content

Commit 48cfebe

Browse files
committed
Format
1 parent 9710265 commit 48cfebe

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

livekit/src/room/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ pub struct RoomOptions {
353353
pub e2ee: Option<E2eeOptions>,
354354
pub rtc_config: RtcConfiguration,
355355
pub join_retries: u32,
356-
pub sdk_options: RoomSdkOptions
356+
pub sdk_options: RoomSdkOptions,
357357
}
358358

359359
impl Default for RoomOptions {
@@ -372,7 +372,7 @@ impl Default for RoomOptions {
372372
ice_transport_type: IceTransportsType::All,
373373
},
374374
join_retries: 3,
375-
sdk_options: RoomSdkOptions::default()
375+
sdk_options: RoomSdkOptions::default(),
376376
}
377377
}
378378
}
@@ -1175,7 +1175,7 @@ impl RoomSession {
11751175
}),
11761176
publish_tracks: self.local_participant.published_tracks_info(),
11771177
data_channels: dcs,
1178-
datachannel_receive_states: session.data_channel_receive_states()
1178+
datachannel_receive_states: session.data_channel_receive_states(),
11791179
};
11801180

11811181
log::debug!("sending sync state {:?}", sync_state);

livekit/src/room/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::collections::HashMap;
22

3-
pub(crate) mod tx_queue;
4-
pub(crate) mod ttl_map;
53
pub mod take_cell;
4+
pub(crate) mod ttl_map;
5+
pub(crate) mod tx_queue;
66
pub mod utf8_chunk;
77

88
pub fn calculate_changed_attributes(

livekit/src/room/utils/ttl_map.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
// limitations under the License.
1414

1515
use std::{
16-
collections::HashMap, fmt::Debug, hash::Hash, time::{Duration, SystemTime}
16+
collections::HashMap,
17+
fmt::Debug,
18+
hash::Hash,
19+
time::{Duration, SystemTime},
1720
};
1821

1922
/// Time to live (TTL) map

livekit/src/room/utils/tx_queue.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@ use std::collections::VecDeque;
1717
#[derive(Debug)]
1818
pub struct TxQueue<T> {
1919
inner: VecDeque<T>,
20-
buffered_size: usize
20+
buffered_size: usize,
2121
}
2222

2323
impl<T: TxQueueItem> TxQueue<T> {
2424
/// Creates an empty queue.
2525
pub fn new() -> Self {
26-
Self {
27-
inner: VecDeque::new(),
28-
buffered_size: 0
29-
}
26+
Self { inner: VecDeque::new(), buffered_size: 0 }
3027
}
3128

3229
/// Number of elements in the queue.
@@ -113,4 +110,4 @@ mod tests {
113110
queue.trim(1);
114111
assert_eq!(queue.buffered_size(), 1);
115112
}
116-
}
113+
}

0 commit comments

Comments
 (0)