add atribute allow clippy::unwrap_used in tests, since it's what tests should do

This commit is contained in:
Akulij 2025-04-28 21:07:45 +03:00
parent 091c0a436e
commit 3761cc6fa8

View File

@ -1,3 +1,5 @@
#![allow(clippy::unwrap_used)]
use dotenvy;
use super::CallDB;
@ -7,7 +9,7 @@ async fn setup_db() -> DB {
dotenvy::dotenv().unwrap();
let db_url = std::env::var("DATABASE_URL").unwrap();
DB::new(db_url).await
DB::new(db_url).await.unwrap()
}
#[tokio::test]