Skip to content

Commit 84f3970

Browse files
committed
fmt
1 parent 80303d6 commit 84f3970

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

livekit-ffi/src/server/audio_stream.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,7 @@ impl FfiAudioStream {
8383
track_id: rtc_track.id(),
8484
};
8585

86-
(Some(filter), Some(AudioFilterInfo {
87-
stream_info,
88-
room_handle,
89-
}))
86+
(Some(filter), Some(AudioFilterInfo { stream_info, room_handle }))
9087
}
9188
None => (None, None),
9289
};
@@ -212,7 +209,8 @@ impl FfiAudioStream {
212209
// track_tx is no longer held, so the track_rx will be closed when track_changed_trigger is done
213210

214211
let url = ffi_participant.room.url();
215-
let room_sid = ffi_participant.room.room.maybe_sid().map(|id| id.to_string()).unwrap_or("".into());
212+
let room_sid =
213+
ffi_participant.room.room.maybe_sid().map(|id| id.to_string()).unwrap_or("".into());
216214
let room_name = ffi_participant.room.room.name();
217215
let participant_identity = ffi_participant.participant.identity();
218216
let participant_id = ffi_participant.participant.sid();
@@ -408,7 +406,6 @@ impl FfiAudioStream {
408406
}
409407
}
410408
}
411-
412409
}
413410

414411
// Used to update audio filter session when the stream info is changed. (Mainly room_id
@@ -426,7 +423,7 @@ impl AudioFilterInfo {
426423
let room_id = room.inner.room.maybe_sid().map(|id| id.to_string()).unwrap_or("".into());
427424
if room_id != "" {
428425
self.stream_info.room_id = room_id.into();
429-
return true
426+
return true;
430427
}
431428
false
432429
}

livekit/src/plugin.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ impl AudioFilterSession {
209209
if self.plugin.update_stream_info_fn_ptr.is_null() {
210210
return;
211211
}
212-
let update_stream_info_fn: UpdateStreamInfoFn = unsafe { std::mem::transmute(self.plugin.update_stream_info_fn_ptr) };
212+
let update_stream_info_fn: UpdateStreamInfoFn =
213+
unsafe { std::mem::transmute(self.plugin.update_stream_info_fn_ptr) };
213214
let info_json = serde_json::to_string(&info).unwrap();
214215
let info_json = CString::new(info_json).unwrap_or(CString::new("").unwrap());
215216
unsafe { update_stream_info_fn(self.ptr, info_json.as_ptr()) }

0 commit comments

Comments
 (0)