Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Apr 4, 2024
1 parent 238f1e9 commit 67e006e
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions src/commonMain/rust/bridge/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,24 @@ impl ToProtobuf<types::stream::Source, ()> for StreamSource {
player_frame_url: player_frame_url.to_string(),
})
}
StreamSource::Rar { rar_urls, file_idx, file_must_include } => {
types::stream::Source::Rar(types::stream::Rar {
rar_urls: rar_urls.to_protobuf(&()),
file_idx: file_idx.map(|idx| idx as i32),
file_must_include: file_must_include.to_owned(),
})
},
StreamSource::Zip { zip_urls, file_idx, file_must_include } => {
types::stream::Source::Zip(types::stream::Zip {
zip_urls: zip_urls.to_protobuf(&()),
file_idx: file_idx.map(|idx| idx as i32),
file_must_include: file_must_include.to_owned(),
})
},
StreamSource::Rar {
rar_urls,
file_idx,
file_must_include,
} => types::stream::Source::Rar(types::stream::Rar {
rar_urls: rar_urls.to_protobuf(&()),
file_idx: file_idx.map(|idx| idx as i32),
file_must_include: file_must_include.to_owned(),
}),
StreamSource::Zip {
zip_urls,
file_idx,
file_must_include,
} => types::stream::Source::Zip(types::stream::Zip {
zip_urls: zip_urls.to_protobuf(&()),
file_idx: file_idx.map(|idx| idx as i32),
file_must_include: file_must_include.to_owned(),
}),
}
}
}
Expand Down

0 comments on commit 67e006e

Please sign in to comment.