diff --git a/contrib/codegen/src/database.rs b/contrib/codegen/src/database.rs index 2ef24d66..2ef9ccd3 100644 --- a/contrib/codegen/src/database.rs +++ b/contrib/codegen/src/database.rs @@ -91,7 +91,7 @@ pub fn database_attr(attr: TokenStream, input: TokenStream) -> Result::pool); match pool { Ok(Ok(p)) => Ok(rocket.manage(#pool_type(p))), @@ -130,6 +130,13 @@ pub fn database_attr(attr: TokenStream, input: TokenStream) -> Result &mut Self::Target { + &mut self.0 + } + } + impl<'a, 'r> #request::FromRequest<'a, 'r> for #request_guard_type { type Error = ();