Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit a2ada8498603a80f38e1d8c5ee3a6c6841730771
parent 81954532491b265ae8dd82ac6c3cd01b77f77849
Author: Sergio Benitez <sb@sergio.bz>
Date:   Mon,  5 Nov 2018 15:02:04 -0800

Move 'UriDisplay' note to top of 'FromUriParam' docs.

Diffstat:
Mcore/http/src/uri/from_uri_param.rs | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/http/src/uri/from_uri_param.rs b/core/http/src/uri/from_uri_param.rs @@ -5,6 +5,10 @@ use uri::UriDisplay; /// Conversion trait for parameters used in [`uri!`] invocations. /// +/// Rocket provides a blanket implementation for all types that implement +/// [`UriDisplay`]. As such, this trait typically does not need to be implemented. +/// Instead, implement [`UriDisplay`]. +/// /// This trait is invoked once per expression passed into a [`uri!`] invocation. /// In particular, for a route URI parameter of type `T` and a user-supplied /// expression of type `S`, `<T as FromUriParam<S>>::from_uri_param` is @@ -31,10 +35,6 @@ use uri::UriDisplay; /// /// # Implementing /// -/// Rocket provides a blanket implementation for all types that implement -/// [`UriDisplay`]. As such, this trait typically does not need to be implemented. -/// Instead, implement [`UriDisplay`]. -/// /// This trait should only be implemented when you'd like to allow a type /// different from the route's declared type to be used in its place in a `uri!` /// invocation. For instance, if the route has a type of `T` and you'd like to