Skip to content

Commit

Permalink
chore: rustfmt
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Dec 4, 2023
1 parent 7677a69 commit 6c69e77
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/models/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ use base64::Engine;
use futures::{future, FutureExt, TryFutureExt};

use crate::constants::{
BASE64, CREDITS_THRESHOLD_COEF, META_RESOURCE_NAME, PLAYER_IGNORE_SEEK_AFTER, VIDEO_FILENAME_EXTRA_PROP, VIDEO_HASH_EXTRA_PROP,
VIDEO_SIZE_EXTRA_PROP, WATCHED_THRESHOLD_COEF,
BASE64, CREDITS_THRESHOLD_COEF, META_RESOURCE_NAME, PLAYER_IGNORE_SEEK_AFTER,
VIDEO_FILENAME_EXTRA_PROP, VIDEO_HASH_EXTRA_PROP, VIDEO_SIZE_EXTRA_PROP,
WATCHED_THRESHOLD_COEF,
};
use crate::models::common::{
eq_update, resource_update, resource_update_with_vector_content,
Expand Down Expand Up @@ -988,7 +989,13 @@ fn seek_update<E: Env + 'static>(
outro: Option<u64>,
) -> Effects {
let has_seeks_or_outro = !seek_history.is_empty() || matches!(outro, Some(outro) if outro > 0);
let seek_request_effects = match (has_seeks_or_outro, selected, video_params, series_info, library_item) {
let seek_request_effects = match (
has_seeks_or_outro,
selected,
video_params,
series_info,
library_item,
) {
(true, Some(selected), Some(video_params), Some(series_info), Some(library_item)) => {
match (
&selected.stream.source,
Expand Down

0 comments on commit 6c69e77

Please sign in to comment.