diff --git a/src/api/endpoints/hls_api.rs b/src/api/endpoints/hls_api.rs index 1387d4611..30d8838e4 100644 --- a/src/api/endpoints/hls_api.rs +++ b/src/api/endpoints/hls_api.rs @@ -14,7 +14,6 @@ use serde::Deserialize; use std::sync::Arc; #[derive(Deserialize)] -#[allow(dead_code)] struct HlsApiPathParams { token: String, username: String, @@ -64,7 +63,6 @@ async fn hls_api_stream( return create_custom_video_stream_response(&app_state.config, &CustomVideoStreamType::UserConnectionsExhausted).into_response(); } - let Some(hls_entry) = app_state.hls_cache.get_entry(¶ms.token).await else { return axum::http::StatusCode::BAD_REQUEST.into_response(); }; let Some(hls_url) = hls_entry.get_chunk_url(params.chunk) else { return axum::http::StatusCode::BAD_REQUEST.into_response(); }; let target_name = &target.name; diff --git a/src/api/model/streams/provider_stream_factory.rs b/src/api/model/streams/provider_stream_factory.rs index 7c1d3f1f0..f536b5448 100644 --- a/src/api/model/streams/provider_stream_factory.rs +++ b/src/api/model/streams/provider_stream_factory.rs @@ -30,7 +30,6 @@ type ResponseInfo = Option<(Vec<(String, String)>, StatusCode)>; type ProviderStreamFactoryResponse = (ResponseStream, ResponseInfo); pub struct BufferStreamOptions { - #[allow(dead_code)] item_type: PlaylistItemType, reconnect_enabled: bool, force_reconnect_secs: u32, diff --git a/src/auth/user.rs b/src/auth/user.rs index 0ac46c74a..0c19cefc7 100644 --- a/src/auth/user.rs +++ b/src/auth/user.rs @@ -1,6 +1,5 @@ use std::ptr; -#[allow(clippy::unsafe_derive_deserialize)] #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct UserCredential { pub username: String, diff --git a/src/repository/bplustree.rs b/src/repository/bplustree.rs index 0796d4aee..85442af6c 100644 --- a/src/repository/bplustree.rs +++ b/src/repository/bplustree.rs @@ -108,7 +108,6 @@ where } } - #[allow(dead_code)] fn query(&self, key: &K) -> Option<&V> { if self.is_leaf { return self.keys.binary_search(key).map_or(None, |idx| self.values.get(idx)); @@ -468,7 +467,6 @@ where // self.root.count() // } - #[allow(dead_code)] pub fn query(&self, key: &K) -> Option<&V> { self.root.query(key) }