Skip to content

Commit

Permalink
Merge pull request #525 from Stremio/chore/fixes-and-linting
Browse files Browse the repository at this point in the history
Chore/fixes and linting
  • Loading branch information
elpiel authored Sep 18, 2023
2 parents 0ca1c1f + 676e429 commit c23a026
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/models/local_search.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! Local autocompletion search
//!
use enclose::enclose;
use futures::FutureExt;
Expand Down Expand Up @@ -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<Searchable>,
/// The results of the search autocompletion
Expand Down
5 changes: 3 additions & 2 deletions src/models/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -72,7 +72,8 @@ pub struct Selected {
pub video_params: Option<VideoParams>,
}

#[derive(Default, Clone, Derivative, Serialize, Debug)]
#[derive(Clone, Derivative, Serialize, Debug)]
#[derivative(Default)]
#[serde(rename_all = "camelCase")]
pub struct Player {
pub selected: Option<Selected>,
Expand Down
4 changes: 3 additions & 1 deletion stremio-watched-bitfield/src/watched_bitfield.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ use std::{
/// // `5` - anchor video length
/// // `eJyTZwAAAEAAIA==` - BitField8
///
/// let watched = "tt2934286:1:5:5:eJyTZwAAAEAAIA==".parse::<WatchedField>().expect("Should parse");
/// let watched = "tt2934286:1:5:5:eJyTZwAAAEAAIA=="
/// .parse::<WatchedField>()
/// .expect("Should parse");
/// ```
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct WatchedField {
Expand Down

0 comments on commit c23a026

Please sign in to comment.