diff --git a/.gitignore b/.gitignore index fedaa2b..c2a0c1e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /target .env +.env.local +.env.docker diff --git a/src/lib.rs b/src/lib.rs index ada99d7..fdc78b0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,7 @@ pub mod db { pub async fn create_pool() -> Result { let database_url = icarus_envy::environment::get_db_url().await; - println!("Database url: {:?}", database_url); + println!("Database url: {database_url}"); PgPoolOptions::new() .max_connections(connection_settings::MAXCONN) diff --git a/src/repo/mod.rs b/src/repo/mod.rs index a58bab5..52e9e3c 100644 --- a/src/repo/mod.rs +++ b/src/repo/mod.rs @@ -57,7 +57,7 @@ pub mod user { .fetch_optional(pool) .await .map_err(|e| { - eprintln!("Error updating time: {}", e); + eprintln!("Error updating time: {e}"); e }); @@ -113,7 +113,7 @@ pub mod user { .fetch_one(pool) .await .map_err(|e| { - eprintln!("Error inserting item: {}", e); + eprintln!("Error inserting item: {e}"); e })?; @@ -180,7 +180,7 @@ pub mod salt { .fetch_one(pool) .await .map_err(|e| { - eprintln!("Error inserting item: {}", e); + eprintln!("Error inserting item: {e}"); e })?;