From 27f7e8f35c40c3b8563806e9755565722a217204 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Fri, 26 Jul 2019 14:21:17 +0200 Subject: [PATCH] Don't use import alias --- src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index c934b32..93c39a9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ use crate::{ }; use actix_web::{ http::header::{self, CacheControl, CacheDirective, Expires, LOCATION}, - middleware, web, App, Error as AError, HttpResponse, HttpServer, + middleware, web, App, Error, HttpResponse, HttpServer, }; use awc::{http::StatusCode, Client}; use futures::Future; @@ -24,7 +24,7 @@ use std::time::{Duration, SystemTime}; fn proxy_file( client: web::Data, data: web::Path, -) -> Box> { +) -> Box> { Box::new( client .get(&T::raw_url( @@ -57,7 +57,7 @@ fn proxy_file( fn redirect( client: web::Data, data: web::Path, -) -> Box> { +) -> Box> { Box::new( client .get(&T::api_url(&data)) @@ -84,9 +84,9 @@ fn redirect( }) .from_err(), ) - as Box>, + as Box>, code => Box::new(futures::future::ok(HttpResponse::build(code).finish())) - as Box>, + as Box>, }), ) } @@ -94,7 +94,7 @@ fn redirect( fn handle_request( client: web::Data, data: web::Path, -) -> Box> { +) -> Box> { if data.commit.len() == 40 { proxy_file::(client, data) } else {