Updated doc link versions to use more explicit 0.7 version. (#2379)

This commit is contained in:
Justin Sexton
2023-11-29 09:31:17 +00:00
committed by GitHub
parent 6d7ddee9ae
commit f98bc1186a
6 changed files with 12 additions and 12 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
//!
//! See [`axum::extract`] for more details.
//!
//! [`axum::extract`]: https://docs.rs/axum/latest/axum/extract/index.html
//! [`axum::extract`]: https://docs.rs/axum/0.7/axum/extract/index.html
use crate::{body::Body, response::IntoResponse};
use async_trait::async_trait;
@@ -46,7 +46,7 @@ mod private {
#[cfg_attr(
nightly_error_messages,
diagnostic::on_unimplemented(
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/latest/axum/extract/index.html` for details",
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.7/axum/extract/index.html` for details",
)
)]
pub trait FromRequestParts<S>: Sized {
@@ -73,7 +73,7 @@ pub trait FromRequestParts<S>: Sized {
#[cfg_attr(
nightly_error_messages,
diagnostic::on_unimplemented(
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/latest/axum/extract/index.html` for details",
note = "Function argument is not a valid axum extractor. \nSee `https://docs.rs/axum/0.7/axum/extract/index.html` for details",
)
)]
pub trait FromRequest<S, M = private::ViaRequest>: Sized {
+1 -1
View File
@@ -58,7 +58,7 @@ where
///
/// Prefer using [`TypedHeader`] to extract only the headers you need.
///
/// [`TypedHeader`]: https://docs.rs/axum/latest/axum/extract/struct.TypedHeader.html
/// [`TypedHeader`]: https://docs.rs/axum/0.7/axum/extract/struct.TypedHeader.html
#[async_trait]
impl<S> FromRequestParts<S> for HeaderMap
where
+1 -1
View File
@@ -2,7 +2,7 @@
//!
//! See [`axum::response`] for more details.
//!
//! [`axum::response`]: https://docs.rs/axum/latest/axum/response/index.html
//! [`axum::response`]: https://docs.rs/axum/0.7/axum/response/index.html
use crate::body::Body;