Skip to content

Commit

Permalink
docs: add warning icon for extractor order (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamsa committed Jun 5, 2023
1 parent eafee2d commit 8374c3e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion axum-extra/src/extract/multipart.rs
Expand Up @@ -23,7 +23,7 @@ use std::{

/// Extractor that parses `multipart/form-data` requests (commonly used with file uploads).
///
/// Since extracting multipart form data from the request requires consuming the body, the
/// ⚠️ Since extracting multipart form data from the request requires consuming the body, the
/// `Multipart` extractor must be *last* if there are multiple extractors in a handler.
/// See ["the order of extractors"][order-of-extractors]
///
Expand Down
2 changes: 1 addition & 1 deletion axum/src/extract/multipart.rs
Expand Up @@ -22,7 +22,7 @@ use std::{

/// Extractor that parses `multipart/form-data` requests (commonly used with file uploads).
///
/// Since extracting multipart form data from the request requires consuming the body, the
/// ⚠️ Since extracting multipart form data from the request requires consuming the body, the
/// `Multipart` extractor must be *last* if there are multiple extractors in a handler.
/// See ["the order of extractors"][order-of-extractors]
///
Expand Down
2 changes: 1 addition & 1 deletion axum/src/form.rs
Expand Up @@ -16,7 +16,7 @@ use serde::Serialize;
/// requests and `application/x-www-form-urlencoded` encoded request bodies for other methods. It
/// supports any type that implements [`serde::Deserialize`].
///
/// Since parsing form data might require consuming the request body, the `Form` extractor must be
/// ⚠️ Since parsing form data might require consuming the request body, the `Form` extractor must be
/// *last* if there are multiple extractors in a handler. See ["the order of
/// extractors"][order-of-extractors]
///
Expand Down
2 changes: 1 addition & 1 deletion axum/src/json.rs
Expand Up @@ -21,7 +21,7 @@ use serde::{de::DeserializeOwned, Serialize};
/// type.
/// - Buffering the request body fails.
///
/// Since parsing JSON requires consuming the request body, the `Json` extractor must be
/// ⚠️ Since parsing JSON requires consuming the request body, the `Json` extractor must be
/// *last* if there are multiple extractors in a handler.
/// See ["the order of extractors"][order-of-extractors]
///
Expand Down

0 comments on commit 8374c3e

Please sign in to comment.