From f7c4cd883a2548c23b60e2ee952a33e7ca85fbe1 Mon Sep 17 00:00:00 2001 From: Yann Simon Date: Tue, 9 Jan 2024 17:25:17 +0100 Subject: [PATCH] Fix link to serde::Deserialize (#2498) --- axum-extra/CHANGELOG.md | 3 +++ axum-extra/src/extract/json_deserializer.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/axum-extra/CHANGELOG.md b/axum-extra/CHANGELOG.md index ffca0333..46117010 100644 --- a/axum-extra/CHANGELOG.md +++ b/axum-extra/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning]. # Unreleased - **added:** Implement `TypedPath` for `WithRejection` +- **fixed:** Documentation link to `serde::Deserialize` in `JsonDeserializer` extractor ([#2498]) + +[#2498]: https://github.com/tokio-rs/axum/pull/2498 # 0.9.1 (29. December, 2023) diff --git a/axum-extra/src/extract/json_deserializer.rs b/axum-extra/src/extract/json_deserializer.rs index 2c73eb36..b138c50f 100644 --- a/axum-extra/src/extract/json_deserializer.rs +++ b/axum-extra/src/extract/json_deserializer.rs @@ -10,7 +10,7 @@ use std::marker::PhantomData; /// JSON Extractor for zero-copy deserialization. /// -/// Deserialize request bodies into some type that implements [`serde::Deserialize<'de>`]. +/// Deserialize request bodies into some type that implements [`serde::Deserialize<'de>`][serde::Deserialize]. /// Parsing JSON is delayed until [`deserialize`](JsonDeserializer::deserialize) is called. /// If the type implements [`serde::de::DeserializeOwned`], the [`Json`](axum::Json) extractor should /// be preferred.