From 0a2a93be042ab0a4ad462bff42d9871feeb967ff Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Mon, 18 Sep 2023 11:13:22 +0300 Subject: [PATCH 1/2] chore: lint docs Signed-off-by: Lachezar Lechev --- src/models/local_search.rs | 2 -- stremio-watched-bitfield/src/watched_bitfield.rs | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/models/local_search.rs b/src/models/local_search.rs index 89c2af391..b3f7c46b5 100644 --- a/src/models/local_search.rs +++ b/src/models/local_search.rs @@ -1,5 +1,4 @@ //! Local autocompletion search -//! use enclose::enclose; use futures::FutureExt; @@ -70,7 +69,6 @@ pub struct Searchable { #[serde(rename_all = "camelCase")] pub struct LocalSearch { /// The Searchable items that will be used for the local search. - /// #[serde(skip)] pub current_records: Vec, /// The results of the search autocompletion diff --git a/stremio-watched-bitfield/src/watched_bitfield.rs b/stremio-watched-bitfield/src/watched_bitfield.rs index 4efbb588f..1a8f79f49 100644 --- a/stremio-watched-bitfield/src/watched_bitfield.rs +++ b/stremio-watched-bitfield/src/watched_bitfield.rs @@ -21,7 +21,9 @@ use std::{ /// // `5` - anchor video length /// // `eJyTZwAAAEAAIA==` - BitField8 /// -/// let watched = "tt2934286:1:5:5:eJyTZwAAAEAAIA==".parse::().expect("Should parse"); +/// let watched = "tt2934286:1:5:5:eJyTZwAAAEAAIA==" +/// .parse::() +/// .expect("Should parse"); /// ``` #[derive(Clone, Debug, PartialEq, Eq)] pub struct WatchedField { From 676e429c9be97ea27b8fa831a37855636e3b8dad Mon Sep 17 00:00:00 2001 From: Lachezar Lechev Date: Mon, 18 Sep 2023 11:13:27 +0300 Subject: [PATCH 2/2] chore: player Default with derivative attr. macro Signed-off-by: Lachezar Lechev --- src/models/player.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/models/player.rs b/src/models/player.rs index 6aa7aa95a..ae9bfaf38 100644 --- a/src/models/player.rs +++ b/src/models/player.rs @@ -17,7 +17,7 @@ use crate::types::resource::{MetaItem, SeriesInfo, Stream, Subtitles, Video}; use stremio_watched_bitfield::WatchedBitField; -use chrono::{DateTime, Duration, Utc}; +use chrono::{DateTime, Duration, TimeZone, Utc}; use derivative::Derivative; use itertools::Itertools; use serde::{Deserialize, Serialize}; @@ -72,7 +72,8 @@ pub struct Selected { pub video_params: Option, } -#[derive(Default, Clone, Derivative, Serialize, Debug)] +#[derive(Clone, Derivative, Serialize, Debug)] +#[derivative(Default)] #[serde(rename_all = "camelCase")] pub struct Player { pub selected: Option,