1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 02:19:22 +02:00

Consistent import formatting (#237)

This commit is contained in:
Luca Palmieri
2022-03-29 11:46:13 +01:00
committed by GitHub
parent aebf9ccf58
commit 8fd1772d5e
14 changed files with 18 additions and 21 deletions

View File

@ -1,5 +1,4 @@
use actix_web::{http::StatusCode, HttpResponse, ResponseError};
use derive_more::{Display, Error};
/// Errors that can occur when processing CORS guarded requests.

View File

@ -1,3 +1,4 @@
use actix_cors::Cors;
use actix_utils::future::ok;
use actix_web::dev::fn_service;
use actix_web::{
@ -11,8 +12,6 @@ use actix_web::{
};
use regex::bytes::Regex;
use actix_cors::Cors;
fn val_as_str(val: &HeaderValue) -> &str {
val.to_str().unwrap()
}