cargo fmt

This commit is contained in:
realaravinth
2021-06-30 20:14:15 +05:30
parent 9f940c317a
commit c05888d648
4 changed files with 7 additions and 9 deletions

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)
}