mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-14 13:08:27 +03:00
cargo fmt
This commit is contained in:
parent
9f940c317a
commit
c05888d648
4 changed files with 7 additions and 9 deletions
|
@ -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() {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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![
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue