cargo fmt

This commit is contained in:
realaravinth 2021-06-30 20:14:15 +05:30
parent 9f940c317a
commit c05888d648
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
4 changed files with 7 additions and 9 deletions

View file

@ -161,8 +161,7 @@ mod tests {
#[test]
fn feature() {
actix_rt::System::new()
.block_on(async move { get_pow_config_works().await });
actix_rt::System::new().block_on(async move { get_pow_config_works().await });
}
async fn get_pow_config_works() {

View file

@ -62,9 +62,9 @@ pub fn handle_embedded_file(path: &str) -> HttpResponse {
Cow::Owned(bytes) => bytes.into(),
};
HttpResponse::Ok()
.insert_header(header::CacheControl(vec![header::CacheDirective::MaxAge(
CACHE_AGE,
)]))
.insert_header(header::CacheControl(vec![
header::CacheDirective::MaxAge(CACHE_AGE),
]))
.content_type(from_path(path).first_or_octet_stream().as_ref())
.body(body)
}

View file

@ -54,7 +54,6 @@ mod tests {
let (data, _, signin_resp) = register_and_signin(NAME, EMAIL, PASSWORD).await;
let cookies = get_cookie!(signin_resp);
let mut app = get_app!(data).await;
let urls = vec![

View file

@ -82,9 +82,9 @@ fn handle_widget_assets(path: &str) -> HttpResponse {
};
HttpResponse::Ok()
.insert_header(header::CacheControl(vec![header::CacheDirective::MaxAge(
crate::CACHE_AGE,
)]))
.insert_header(header::CacheControl(vec![
header::CacheDirective::MaxAge(crate::CACHE_AGE),
]))
.content_type(from_path(path).first_or_octet_stream().as_ref())
.body(body)
}