You've already forked AstralRinth
forked from didirus/AstralRinth
Fix clippy warnings
This commit is contained in:
@@ -7,5 +7,5 @@ pub fn connect() -> PgConnection{
|
||||
dotenv().ok();
|
||||
|
||||
let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set!");
|
||||
PgConnection::establish(&database_url).expect(&format!("Error connecting to {}", database_url))
|
||||
}
|
||||
PgConnection::establish(&database_url).unwrap_or_else(|_| panic!("Error connecting to {}", database_url))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user