refactor: make cargo clippy happier
This commit is contained in:
@@ -84,7 +84,7 @@ fn setup_rocket() -> rocket::Rocket {
|
||||
|
||||
fn main() {
|
||||
// Log info by default
|
||||
if let Err(_) = std::env::var("RUST_LOG") {
|
||||
if std::env::var("RUST_LOG").is_err() {
|
||||
std::env::set_var("RUST_LOG", "warn");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user