Skip to content

Commit b7811e2

Browse files
committed
Format
1 parent f579cd0 commit b7811e2

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

livekit/src/proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl From<participant_info::State> for participant::ParticipantState {
154154
participant_info::State::Joining => participant::ParticipantState::Joining,
155155
participant_info::State::Joined => participant::ParticipantState::Joined,
156156
participant_info::State::Active => participant::ParticipantState::Active,
157-
participant_info::State::Disconnected => participant::ParticipantState::Disconnected
157+
participant_info::State::Disconnected => participant::ParticipantState::Disconnected,
158158
}
159159
}
160160
}

livekit/src/room/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,8 @@ impl RoomSession {
990990
let already_active = remote_participant.is_active();
991991
remote_participant.update_info(pi.clone());
992992
if !already_active && remote_participant.is_active() {
993-
self.dispatcher.dispatch(&RoomEvent::ParticipantActive(remote_participant.clone()));
993+
self.dispatcher
994+
.dispatch(&RoomEvent::ParticipantActive(remote_participant.clone()));
994995
}
995996
participants.push(Participant::Remote(remote_participant));
996997
} else {

livekit/src/room/participant/local_participant.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ impl LocalParticipant {
118118
encryption_type: EncryptionType,
119119
) -> Self {
120120
Self {
121-
inner: super::new_inner(rtc_engine, sid, identity, name, metadata, attributes, kind, state),
121+
inner: super::new_inner(
122+
rtc_engine, sid, identity, name, metadata, attributes, kind, state,
123+
),
122124
local: Arc::new(LocalInfo {
123125
events: LocalEvents::default(),
124126
encryption_type,

livekit/src/room/participant/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub(crate) enum ParticipantState {
5151
Joining,
5252
Joined,
5353
Active,
54-
Disconnected
54+
Disconnected,
5555
}
5656

5757
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
@@ -164,7 +164,7 @@ pub(super) fn new_inner(
164164
metadata: String,
165165
attributes: HashMap<String, String>,
166166
kind: ParticipantKind,
167-
state: ParticipantState
167+
state: ParticipantState,
168168
) -> Arc<ParticipantInner> {
169169
Arc::new(ParticipantInner {
170170
rtc_engine,

0 commit comments

Comments
 (0)