Skip to content

Commit fe6f087

Browse files
committed
Fix clippy: redundant_pattern_matching
1 parent 20efa57 commit fe6f087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn run_rustup() -> Result<()> {
4848
open_trace_file!(dir)?;
4949
}
5050
let result = run_rustup_inner();
51-
if let Ok(_) = env::var("RUSTUP_TRACE_DIR") {
51+
if env::var("RUSTUP_TRACE_DIR").is_ok() {
5252
close_trace_file!();
5353
}
5454
result

0 commit comments

Comments
 (0)