From 5333a52ca2da1a18bb856be8ef27a23c1c1543ad Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 14 Oct 2017 22:28:44 +0200 Subject: Fix up types for Rocket Responder impls --- askama/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/askama/src/lib.rs b/askama/src/lib.rs index 42be2cd..4552235 100644 --- a/askama/src/lib.rs +++ b/askama/src/lib.rs @@ -301,13 +301,13 @@ pub mod rocket { extern crate rocket; use self::rocket::http::{ContentType, Status}; - use self::rocket::request::Request; + pub use self::rocket::request::Request; use self::rocket::response::Response; use std::io::Cursor; pub use self::rocket::response::{Responder, Result}; - pub fn respond(t: &super::Template, ext: &str) -> Result { + pub fn respond(t: &super::Template, ext: &str) -> Result<'static> { let rsp = t.render().map_err(|_| Status::InternalServerError)?; let ctype = ContentType::from_extension(ext).ok_or(Status::InternalServerError)?; Response::build() -- cgit