mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-08 17:02:22 +02:00
removed dead_code annotations
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,6 +1,5 @@
|
||||
use std::ptr;
|
||||
|
||||
#[allow(clippy::unsafe_derive_deserialize)]
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub struct UserCredential {
|
||||
pub username: String,
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user