Skip to content

Commit

Permalink
Fix issue found by clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Jul 2, 2024
1 parent 2d2dbae commit addf1f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/ubi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ impl Backend for UbiBackend {
builder = builder.tag(version);
}

let exe = std::env::var("MISE_TOOL_OPTS__EXE").unwrap_or(String::new());
let exe = std::env::var("MISE_TOOL_OPTS__EXE").unwrap_or_default();
if !exe.is_empty() {
builder = builder.exe(&exe);
}
let matching = std::env::var("MISE_TOOL_OPTS__MATCHING").unwrap_or(String::new());
let matching = std::env::var("MISE_TOOL_OPTS__MATCHING").unwrap_or_default();
if !matching.is_empty() {
builder = builder.matching(&matching);
}
Expand Down

0 comments on commit addf1f2

Please sign in to comment.