fix a bunch of lints
This commit is contained in:
parent
aed73e99be
commit
420fac5f18
5 changed files with 40 additions and 41 deletions
|
|
@ -14,7 +14,7 @@ use tracing_subscriber::{EnvFilter, layer::SubscriberExt};
|
|||
|
||||
fn main_wrapped() -> Result<(), Box<dyn StdError + Send + Sync + 'static>> {
|
||||
// Default RUST_LOG to warn if it's not specified.
|
||||
if let None = env::var_os("RUST_LOG") {
|
||||
if env::var_os("RUST_LOG").is_none() {
|
||||
unsafe {
|
||||
env::set_var("RUST_LOG", "warn");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue