diff --git a/src/api/api_utils.rs b/src/api/api_utils.rs index be86abd07..edf734083 100644 --- a/src/api/api_utils.rs +++ b/src/api/api_utils.rs @@ -241,6 +241,7 @@ fn get_streaming_options(app_state: &AppState, stream_url: &str, input_opt: Opti } } +#[allow(clippy::too_many_arguments)] async fn create_stream_response_details(app_state: &AppState, stream_options: &StreamOptions, stream_url: &str, req_headers: &HeaderMap, input_opt: Option<&ConfigInput>, item_type: PlaylistItemType, share_stream: bool, @@ -308,6 +309,7 @@ async fn create_stream_response_details(app_state: &AppState, stream_options: &S } /// # Panics +#[allow(clippy::too_many_arguments)] pub async fn stream_response(app_state: &AppState, stream_url: &str, req_headers: &HeaderMap, diff --git a/src/api/endpoints/xtream_api.rs b/src/api/endpoints/xtream_api.rs index 45738d9ce..42841de6c 100644 --- a/src/api/endpoints/xtream_api.rs +++ b/src/api/endpoints/xtream_api.rs @@ -192,7 +192,7 @@ async fn xtream_player_api_stream( if user.permission_denied(app_state) { return axum::http::StatusCode::FORBIDDEN.into_response(); } - let connection_permission = user.connection_permission(&app_state).await; + let connection_permission = user.connection_permission(app_state).await; if connection_permission == UserConnectionPermission::Exhausted { return create_custom_video_stream_response(&app_state.config, &CustomVideoStreamType::UserConnectionsExhausted).into_response(); } diff --git a/src/api/model/streams/active_client_stream.rs b/src/api/model/streams/active_client_stream.rs index 2e940f58f..cd8cffd57 100644 --- a/src/api/model/streams/active_client_stream.rs +++ b/src/api/model/streams/active_client_stream.rs @@ -37,7 +37,7 @@ impl ActiveClientStream { let active_user = app_state.active_users.clone(); let active_provider = app_state.active_provider.clone(); if connection_permission == UserConnectionPermission::Exhausted { - error!("Something is wrong it should not come here") + error!("Something is wrong this should not happen"); } let grant_user_grace_period = connection_permission == UserConnectionPermission::GracePeriod; let username = user.username.as_str();