removed dead_code annotations

This commit is contained in:
euzu
2025-03-17 15:43:15 +01:00
parent 8ee354449f
commit 9ec2a4cafd
4 changed files with 0 additions and 6 deletions
-2
View File
@@ -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(&params.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;
@@ -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,
-1
View File
@@ -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,
-2
View File
@@ -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)
}