diff --git a/src/static_assets/static_files.rs b/src/static_assets/static_files.rs index 81375cd..20adc44 100644 --- a/src/static_assets/static_files.rs +++ b/src/static_assets/static_files.rs @@ -89,9 +89,8 @@ mod tests { async fn static_assets_work(data: Arc, db: BoxDB) { let app = get_app!(data, db).await; - for file in [*CSS].iter() { - let resp = get_request!(&app, file); - assert_eq!(resp.status(), StatusCode::OK); - } + let file = *CSS; + let resp = get_request!(&app, file); + assert_eq!(resp.status(), StatusCode::OK); } }