Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bcherry committed Oct 23, 2024
1 parent 859f2aa commit d0b84e7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 22 deletions.
6 changes: 1 addition & 5 deletions livekit-api/src/signal_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ pub enum SignalError {
SendError,
}


#[derive(Debug, Clone)]
pub struct SignalSdkOptions {
pub sdk: String,
Expand All @@ -73,10 +72,7 @@ pub struct SignalSdkOptions {

impl Default for SignalSdkOptions {
fn default() -> Self {
Self {
sdk: "rust".to_string(),
sdk_version: None,
}
Self { sdk: "rust".to_string(), sdk_version: None }
}
}

Expand Down
9 changes: 1 addition & 8 deletions livekit-ffi/src/server/room.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,7 @@ impl FfiRoom {
}

let connect = async move {
match Room::connect(
&connect.url,
&connect.token,
options.clone(),
)
.await
{
match Room::connect(&connect.url, &connect.token, options.clone()).await {
Ok((room, mut events)) => {
// Successfully connected to the room
// Forward the initial state for the FfiClient
Expand Down Expand Up @@ -1201,4 +1195,3 @@ fn build_initial_states(
remote_infos,
)
}

2 changes: 1 addition & 1 deletion livekit/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ pub use crate::{
RemoteVideoTrack, StreamState, Track, TrackDimension, TrackKind, TrackSource, VideoTrack,
},
ConnectionState, DataPacket, DataPacketKind, DisconnectReason, Room, RoomError, RoomEvent,
RoomOptions, RoomSdkOptions, RoomResult, SipDTMF, Transcription, TranscriptionSegment,
RoomOptions, RoomResult, RoomSdkOptions, SipDTMF, Transcription, TranscriptionSegment,
};
10 changes: 2 additions & 8 deletions livekit/src/room/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,19 +260,13 @@ pub struct RoomSdkOptions {

impl Default for RoomSdkOptions {
fn default() -> Self {
Self {
sdk: "rust".to_string(),
sdk_version: SDK_VERSION.to_string(),
}
Self { sdk: "rust".to_string(), sdk_version: SDK_VERSION.to_string() }
}
}

impl From<RoomSdkOptions> for SignalSdkOptions {
fn from(options: RoomSdkOptions) -> Self {
SignalSdkOptions {
sdk: options.sdk,
sdk_version: Some(options.sdk_version),
}
SignalSdkOptions { sdk: options.sdk, sdk_version: Some(options.sdk_version) }
}
}

Expand Down

0 comments on commit d0b84e7

Please sign in to comment.