Update to syn 2 (#1862)

This commit is contained in:
David Pedersen
2023-03-18 19:23:27 +00:00
committed by GitHub
parent b315e5b37e
commit 8e1eb8979f
19 changed files with 28 additions and 25 deletions
+3 -3
View File
@@ -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 {