mirror of
https://github.com/actix/actix-website
synced 2025-06-27 15:39:02 +02:00
Add dyn keyword to get rid of some warnings
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
use actix_web::{error, web, Error, HttpResponse};
|
||||
use futures::{future::result, Future, Stream};
|
||||
|
||||
pub fn index(payload: web::Payload) -> Box<Future<Item = HttpResponse, Error = Error>> {
|
||||
pub fn index(payload: web::Payload) -> Box<dyn Future<Item = HttpResponse, Error = Error>> {
|
||||
Box::new(
|
||||
payload
|
||||
.from_err()
|
||||
|
Reference in New Issue
Block a user