mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-02 00:00:22 +02:00
Update to syn 2 (#1862)
This commit is contained in:
@@ -32,7 +32,7 @@ pin_project! {
|
||||
///
|
||||
/// ```rust
|
||||
/// use axum_extra::json_lines::JsonLines;
|
||||
/// use futures::stream::StreamExt;
|
||||
/// use futures_util::stream::StreamExt;
|
||||
///
|
||||
/// async fn handler(mut stream: JsonLines<serde_json::Value>) {
|
||||
/// while let Some(value) = stream.next().await {
|
||||
@@ -46,10 +46,10 @@ pin_project! {
|
||||
/// ```rust
|
||||
/// use axum::{BoxError, response::{IntoResponse, Response}};
|
||||
/// use axum_extra::json_lines::JsonLines;
|
||||
/// use futures::stream::Stream;
|
||||
/// use futures_util::stream::Stream;
|
||||
///
|
||||
/// fn stream_of_values() -> impl Stream<Item = Result<serde_json::Value, BoxError>> {
|
||||
/// # futures::stream::empty()
|
||||
/// # futures_util::stream::empty()
|
||||
/// }
|
||||
///
|
||||
/// async fn handler() -> Response {
|
||||
|
||||
Reference in New Issue
Block a user