Skip to content

Commit

Permalink
Merge pull request #707 from Stremio/fix/latest-rust-stable-clippy-do…
Browse files Browse the repository at this point in the history
…cs-warnings

fix: Rust 1.80 clippy and doc warnings
  • Loading branch information
elpiel authored Jul 25, 2024
2 parents fc6b184 + d67ea55 commit 8d3e3ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/models/meta_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ fn library_item_sync(library_item: &Option<LibraryItem>, profile: &Profile) -> E
///
/// 1. We find the first `MetaItem` that's successfully loaded from the addons.
/// 2. Selecting the video id for the stream request:
/// 2.1 If there's a `MetaItem.preview.behavior_hints.default_video_id`
/// we use it for the request
/// 2.2 If there's no `default_video_id` and no `MetaItem.videos` returned by the addon,
/// we use the `MetaItem.preview.id`
/// 2.1 If there's a `MetaItem.preview.behavior_hints.default_video_id`
/// we use it for the request
/// 2.2 If there's no `default_video_id` and no `MetaItem.videos` returned by the addon,
/// we use the `MetaItem.preview.id`
///
/// If we haven't found a suitable `video_id`, then we do not override the `Selected::stream_path`.
fn selected_guess_stream_update(
Expand Down
2 changes: 1 addition & 1 deletion src/types/resource/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ pub struct StreamProxyHeaders {
pub response: HashMap<String, String>,
}

/// See https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/stream.md#additional-properties-to-provide-information--behaviour-flags for documentation
/// See <https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/stream.md#additional-properties-to-provide-information--behaviour-flags> for documentation
#[derive(Default, Clone, PartialEq, Eq, Serialize, Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct StreamBehaviorHints {
Expand Down

0 comments on commit 8d3e3ec

Please sign in to comment.