From c3481f5f91d98254348efdd723cb3ae8e4166839 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 26 Dec 2024 09:56:13 +0100 Subject: [PATCH] Restore `#` prefix for `let _` assignments --- axum-extra/src/response/file_stream.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/axum-extra/src/response/file_stream.rs b/axum-extra/src/response/file_stream.rs index 380ff72203..af63f65f42 100644 --- a/axum-extra/src/response/file_stream.rs +++ b/axum-extra/src/response/file_stream.rs @@ -42,7 +42,7 @@ use tokio_util::io::ReaderStream; /// } /// /// let app = Router::new().route("/file-stream", get(file_stream)); -/// let _: Router = app; +/// # let _: Router = app; /// ``` #[derive(Debug)] pub struct FileStream { @@ -91,7 +91,7 @@ where /// } /// /// let app = Router::new().route("/file-stream", get(file_stream)); - /// let _: Router = app; + /// # let _: Router = app; /// ``` pub async fn from_path(path: impl AsRef) -> io::Result>> { let file = File::open(&path).await?; @@ -166,7 +166,7 @@ where /// } /// /// let app = Router::new().route("/file-stream", get(range_response)); - /// let _: Router = app; + /// # let _: Router = app; /// ``` pub fn into_range_response(self, start: u64, end: u64, total_size: u64) -> Response { let mut resp = Response::builder().header(header::CONTENT_TYPE, "application/octet-stream"); @@ -224,7 +224,7 @@ where /// } /// /// let app = Router::new().route("/file-stream", get(range_stream)); - /// let _: Router = app; + /// # let _: Router = app; /// ``` pub async fn try_range_response( file_path: impl AsRef,