From d0b4c9032e11cc9712223bd2ac3e770544cad744 Mon Sep 17 00:00:00 2001 From: Chris Glass Date: Wed, 24 Aug 2022 09:39:41 +0200 Subject: [PATCH] Explicitely point out example's dependency (#1312) * Explicitely point out example dependency Save the next visitor to that docs page the trouble of having to figure out why a Path extractor results in a cryptic error by default. * Update axum/src/extract/path/mod.rs Co-authored-by: David Pedersen Co-authored-by: David Pedersen --- axum/src/extract/path/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/axum/src/extract/path/mod.rs b/axum/src/extract/path/mod.rs index 0575c8a3..ad4e5eb4 100644 --- a/axum/src/extract/path/mod.rs +++ b/axum/src/extract/path/mod.rs @@ -25,6 +25,10 @@ use std::{ /// /// # Example /// +/// These examples assume the `serde` feature of the [`uuid`] crate is enabled. +/// +/// [`uuid`]: https://crates.io/crates/uuid +/// /// ```rust,no_run /// use axum::{ /// extract::Path,