aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-10-14 22:28:44 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-10-14 22:28:44 +0200
commit5333a52ca2da1a18bb856be8ef27a23c1c1543ad (patch)
tree7ab9ee2a50d0daa187a6a1a53ab44aa6907c7199
parent857e11a40c0f8cc84c56a14c43984fed5b662f6e (diff)
downloadaskama-5333a52ca2da1a18bb856be8ef27a23c1c1543ad.tar.gz
askama-5333a52ca2da1a18bb856be8ef27a23c1c1543ad.tar.bz2
askama-5333a52ca2da1a18bb856be8ef27a23c1c1543ad.zip
Fix up types for Rocket Responder impls
-rw-r--r--askama/src/lib.rs4
1 files 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()