mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-27 00:00:24 +02:00
Updated doc link versions to use more explicit 0.7 version. (#2379)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user