From 7d43b4651db80fd6ac8ad7e6d75d2ea1c8597d9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ml=C3=A1dek?= Date: Sun, 9 Jun 2024 23:20:35 +0200 Subject: [PATCH] docs: Remove unnecessary link targets (#2778) --- axum/src/docs/extract.md | 3 +-- axum/src/docs/response.md | 2 +- axum/src/docs/routing/route.md | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/axum/src/docs/extract.md b/axum/src/docs/extract.md index 8ab0e90b..b3c936c7 100644 --- a/axum/src/docs/extract.md +++ b/axum/src/docs/extract.md @@ -19,8 +19,7 @@ Types and traits for extracting data from requests. A handler function is an async function that takes any number of "extractors" as arguments. An extractor is a type that implements -[`FromRequest`](crate::extract::FromRequest) -or [`FromRequestParts`](crate::extract::FromRequestParts). +[`FromRequest`] or [`FromRequestParts`]. For example, [`Json`] is an extractor that consumes the request body and deserializes it as JSON into some target type: diff --git a/axum/src/docs/response.md b/axum/src/docs/response.md index a5761c34..67695632 100644 --- a/axum/src/docs/response.md +++ b/axum/src/docs/response.md @@ -166,7 +166,7 @@ In general you can return tuples like: This means you cannot accidentally override the status or body as [`IntoResponseParts`] only allows setting headers and extensions. -Use [`Response`](crate::response::Response) for more low level control: +Use [`Response`] for more low level control: ```rust,no_run use axum::{ diff --git a/axum/src/docs/routing/route.md b/axum/src/docs/routing/route.md index fa55f4fa..e8172137 100644 --- a/axum/src/docs/routing/route.md +++ b/axum/src/docs/routing/route.md @@ -5,8 +5,7 @@ can be either static, a capture, or a wildcard. `method_router` is the [`MethodRouter`] that should receive the request if the path matches `path`. `method_router` will commonly be a handler wrapped in a method -router like [`get`](crate::routing::get). See [`handler`](crate::handler) for -more details on handlers. +router like [`get`]. See [`handler`](crate::handler) for more details on handlers. # Static paths