Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/fixes and linting #525

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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