mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 14:49:20 +02:00
Remove generic type for request payload, always use default
This commit is contained in:
@ -61,8 +61,8 @@ impl fmt::Display for Args {
|
||||
#[allow(non_camel_case_types)]
|
||||
pub struct {name};
|
||||
|
||||
impl<P: 'static> actix_web::dev::HttpServiceFactory<P> for {name} {{
|
||||
fn register(self, config: &mut actix_web::dev::ServiceConfig<P>) {{
|
||||
impl actix_web::dev::HttpServiceFactory for {name} {{
|
||||
fn register(self, config: &mut actix_web::dev::ServiceConfig) {{
|
||||
{ast}
|
||||
|
||||
let resource = actix_web::Resource::new(\"{path}\"){guards}.{to}({name});
|
||||
|
@ -4,11 +4,6 @@ use actix_web::{http, App, HttpResponse, Responder};
|
||||
use actix_web_codegen::get;
|
||||
use futures::{future, Future};
|
||||
|
||||
//fn guard_head(head: &actix_web::dev::RequestHead) -> bool {
|
||||
// true
|
||||
//}
|
||||
|
||||
//#[get("/test", guard="guard_head")]
|
||||
#[get("/test")]
|
||||
fn test() -> impl Responder {
|
||||
HttpResponse::Ok()
|
||||
|
Reference in New Issue
Block a user