mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-15 12:22:18 +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,
|
||||
|
||||
Reference in New Issue
Block a user