mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 07:20:55 +00:00
askama_mendes: upgrade mendes to 0.0.62 (#636)
This commit is contained in:
parent
fd8bfa43c0
commit
57e53d58f4
@ -14,7 +14,7 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
askama = { version = "0.11.0-beta.1", path = "../askama", default-features = false, features = ["with-mendes", "mime", "mime_guess"] }
|
askama = { version = "0.11.0-beta.1", path = "../askama", default-features = false, features = ["with-mendes", "mime", "mime_guess"] }
|
||||||
mendes = "0.0.60"
|
mendes = "0.0.62"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
async-trait = "0.1.51"
|
async-trait = "0.1.51"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#![deny(elided_lifetimes_in_paths)]
|
#![deny(elided_lifetimes_in_paths)]
|
||||||
#![deny(unreachable_pub)]
|
#![deny(unreachable_pub)]
|
||||||
|
|
||||||
use mendes::application::{Application, Responder};
|
use mendes::application::{Application, IntoResponse};
|
||||||
use mendes::http::header::{HeaderValue, CONTENT_LENGTH, CONTENT_TYPE};
|
use mendes::http::header::{HeaderValue, CONTENT_LENGTH, CONTENT_TYPE};
|
||||||
use mendes::http::request::Parts;
|
use mendes::http::request::Parts;
|
||||||
use mendes::http::Response;
|
use mendes::http::Response;
|
||||||
|
@ -3,7 +3,7 @@ use std::sync::Arc;
|
|||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use hyper::body::to_bytes;
|
use hyper::body::to_bytes;
|
||||||
use hyper::{Body, Request};
|
use hyper::{Body, Request};
|
||||||
use mendes::application::Responder;
|
use mendes::application::IntoResponse;
|
||||||
use mendes::http::request::Parts;
|
use mendes::http::request::Parts;
|
||||||
use mendes::http::{Response, StatusCode};
|
use mendes::http::{Response, StatusCode};
|
||||||
use mendes::{handler, route, Application, Context};
|
use mendes::{handler, route, Application, Context};
|
||||||
@ -77,7 +77,7 @@ impl std::fmt::Display for Error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Responder<App> for Error {
|
impl IntoResponse<App> for Error {
|
||||||
fn into_response(self, _: &App, _: &Parts) -> Response<Body> {
|
fn into_response(self, _: &App, _: &Parts) -> Response<Body> {
|
||||||
Response::builder()
|
Response::builder()
|
||||||
.status(StatusCode::from(&self))
|
.status(StatusCode::from(&self))
|
||||||
|
@ -271,7 +271,7 @@ impl<'a, S: std::hash::BuildHasher> Generator<'a, S> {
|
|||||||
format!(
|
format!(
|
||||||
"{} {} for {} {} {{",
|
"{} {} for {} {} {{",
|
||||||
quote!(impl#impl_generics),
|
quote!(impl#impl_generics),
|
||||||
"::mendes::application::Responder<A>",
|
"::mendes::application::IntoResponse<A>",
|
||||||
self.input.ast.ident,
|
self.input.ast.ident,
|
||||||
quote!(#orig_ty_generics #where_clause),
|
quote!(#orig_ty_generics #where_clause),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user