mirror of https://github.com/rwf2/Rocket.git
Update 'devise', fix 'Responder' derive generics.
This commit is contained in:
parent
80cd30086a
commit
4b272f19ba
|
@ -19,7 +19,7 @@ indexmap = "1.0"
|
|||
quote = "1.0"
|
||||
syn = { version = "1.0.72", features = ["full", "visit", "visit-mut", "extra-traits"] }
|
||||
proc-macro2 = "1.0.27"
|
||||
devise = "0.3"
|
||||
devise = "0.3.1"
|
||||
rocket_http = { version = "0.5.0-rc.1", path = "../http/" }
|
||||
unicode-xid = "0.2"
|
||||
glob = "0.3"
|
||||
|
|
|
@ -687,8 +687,8 @@ pub fn derive_from_form_field(input: TokenStream) -> TokenStream {
|
|||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// [`FromForm`]: rocket::form::FromForm
|
||||
/// [`form::Errors`]: rocket::form::Errors
|
||||
/// [`FromForm`]: ../rocket/form/trait.FromForm.html
|
||||
/// [`form::Errors`]: ../rocket/form/struct.Errors.html
|
||||
///
|
||||
/// # Generics
|
||||
///
|
||||
|
|
|
@ -49,4 +49,19 @@ struct Thing12(());
|
|||
#[response(status = 404, content_type = 120)]
|
||||
struct Thing13(());
|
||||
|
||||
#[derive(Responder)] // NO ERROR
|
||||
enum Error<'r, T> {
|
||||
#[response(status = 400)]
|
||||
Unauthorized(T),
|
||||
#[response(status = 404)]
|
||||
NotFound(rocket::fs::NamedFile),
|
||||
#[response(status = 500)]
|
||||
A(&'r str, rocket::http::ContentType),
|
||||
}
|
||||
|
||||
#[derive(Responder)] // NO ERROR
|
||||
enum Error2<'r, T> {
|
||||
Unauthorized(&'r T),
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
Loading…
Reference in New Issue