Skip to content

Commit

Permalink
fix: rustfmt & clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Jan 27, 2025
1 parent 64fb707 commit 2b927ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/deep_links/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl From<(&Stream<ConvertedStreamSource>, Option<&Url>, &Settings)> for Externa
),
) -> Self {
// Use streaming_server_url from settings if streaming_server is reachable
let streaming_server_url = streaming_server_url.map(|_| &settings.streaming_server_url);
// let streaming_server_url = streaming_server_url.map(|_| &settings.streaming_server_url);
let http_regex = Regex::new(r"https?://").unwrap();
// let download = stream.download_url();
let download = None;
Expand Down
7 changes: 1 addition & 6 deletions src/models/streaming_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -784,12 +784,7 @@ pub fn convert_stream<E: Env + 'static>(
// })
// ConvertedStreamSource::Url(todo!())
// }
StreamSource::Torrent {
info_hash,
file_idx,
announce,
..
} => {
StreamSource::Torrent { .. } => {
// Torrent
// createTorrent(streamingServerURL, stream.infoHash, stream.fileIdx, stream.announce, seriesInfo)
// .then(function(torrent) {
Expand Down
3 changes: 0 additions & 3 deletions src/types/streams/converted_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ mod sealed {

#[serde_as]
#[derive(Clone, PartialEq, Eq, Serialize, Deserialize, Debug)]
#[cfg_attr(test, derive(derivative::Derivative))]
#[cfg_attr(test, derivative(Default))]
#[serde(untagged)]
pub enum ConvertedStreamSource {
Url {
url: Url,
},
#[cfg_attr(test, derivative(Default))]
#[serde(rename_all = "camelCase")]
YouTube {
/// The Streaming url
Expand Down

0 comments on commit 2b927ad

Please sign in to comment.