Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 14, 2023
1 parent 036b626 commit 146d49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ pub static RTX_EXE: Lazy<PathBuf> = Lazy::new(|| {
.unwrap_or_else(|| "rtx".into())
});
pub static RTX_BIN_NAME: Lazy<String> = Lazy::new(|| {
let args = ARGS.read().unwrap();
args[0].rsplit_once('/').unwrap_or(("", &args[0])).1.to_string()
let arg0 = &ARGS.read().unwrap()[0];
arg0.rsplit_once('/').unwrap_or(("", &arg0)).1.to_string()
});

pub static RTX_LOG_LEVEL: Lazy<LevelFilter> = Lazy::new(log_level);
Expand Down

0 comments on commit 146d49b

Please sign in to comment.