Skip to content

Commit

Permalink
chore: Add experimental feature to unused struct
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
  • Loading branch information
elpiel committed May 10, 2024
1 parent 3a634bb commit 8081725
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/types/streaming_server/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ impl ArchiveStreamRequest {
/// Where all parameters are url encoded.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
#[cfg(feature = "experimental")]
pub struct ArchiveStreamOptions {
#[serde(skip_serializing_if = "Option::is_none")]
pub file_idx: Option<u16>,
Expand Down Expand Up @@ -277,10 +278,11 @@ impl From<TorrentStatisticsRequest> for Request<()> {

#[cfg(test)]
mod tests {
use super::*;


#[test]
#[cfg(feature = "experimental")]
fn test_options_to_serde_json_value_keys_length() {
use super::ArchiveStreamOptions;
// 0 keys
{
let json_value = serde_json::to_value(ArchiveStreamOptions {
Expand Down
1 change: 0 additions & 1 deletion src/types/streams/converted_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ mod sealed {
pub trait Sealed {}
}

// #[serde_as]
#[derive(Clone, PartialEq, Eq, Debug)]
pub enum ConvertedStreamSource {
Url(Url),
Expand Down

0 comments on commit 8081725

Please sign in to comment.