refactor: make cargo clippy happier

This commit is contained in:
timokoesters 2020-05-11 12:33:25 +02:00
parent 1dbde0e1c1
commit 8e041f90dd
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
6 changed files with 23 additions and 31 deletions

View file

@ -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");
}