Fix link to serde::Deserialize (#2498)

This commit is contained in:
Yann Simon 2024-01-09 17:25:17 +01:00 committed by GitHub
parent 5b6204168a
commit f7c4cd883a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning].
# Unreleased
- **added:** Implement `TypedPath` for `WithRejection<TypedPath, _>`
- **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)

View file

@ -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.