Skip to content

Commit

Permalink
Restore # prefix for let _ assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Dec 26, 2024
1 parent 25c04fe commit c3481f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions axum-extra/src/response/file_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<S> {
Expand Down Expand Up @@ -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<Path>) -> io::Result<FileStream<ReaderStream<File>>> {
let file = File::open(&path).await?;
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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<Path>,
Expand Down

0 comments on commit c3481f5

Please sign in to comment.