mirror of
https://github.com/actix/actix-website
synced 2025-06-27 07:29:02 +02:00
Add dyn keyword to get rid of some warnings
This commit is contained in:
@ -3,7 +3,7 @@ use actix_web::{Either, Error, HttpResponse};
|
||||
use futures::future::{ok, Future};
|
||||
|
||||
type RegisterResult =
|
||||
Either<HttpResponse, Box<Future<Item = HttpResponse, Error = Error>>>;
|
||||
Either<HttpResponse, Box<dyn Future<Item = HttpResponse, Error = Error>>>;
|
||||
|
||||
fn index() -> RegisterResult {
|
||||
if is_a_variant() {
|
||||
|
Reference in New Issue
Block a user