diff --git a/src/view.rs b/src/view.rs index 54c8e11..e44fb69 100644 --- a/src/view.rs +++ b/src/view.rs @@ -16,22 +16,6 @@ use mime_guess::mime; use tokio::fs::File; use tokio_util::io::ReaderStream; -use crate::cache; - -/* pub enum ViewResponse { - FromDisk(StreamBody>), - FromCache(Bytes) -} - -impl IntoResponse for ViewResponse { - fn into_response(self) -> Response { - match self { - ViewResponse::FromDisk(stream) => stream.into_response(), - ViewResponse::FromCache(data) => data.into_response() - } - } -} */ - #[axum::debug_handler] pub async fn view( State(state): State>,