chore: explicit default lib

This commit is contained in:
iff 2024-12-12 16:38:42 +01:00
parent 6392118cb6
commit 58db47ec17
2 changed files with 3 additions and 3 deletions

View file

@ -87,8 +87,8 @@ fn print_version() {
"version: {}", "version: {}",
option_env!("CARGO_PKG_VERSION").unwrap_or("unknown") option_env!("CARGO_PKG_VERSION").unwrap_or("unknown")
); );
let lib = option_env!("_PR_LIB").map(|dir| dir.to_string()); let lib = option_env!("_DEF_PR_LIB").map(|dir| dir.to_string());
if lib.is_some() { if lib.is_some() {
println!("lib: {}", lib.unwrap()); println!("Default lib directory: {}", lib.unwrap());
} }
} }

View file

@ -59,7 +59,7 @@ impl Data {
if let Ok(lib_dir) = std::env::var("_PR_LIB") { if let Ok(lib_dir) = std::env::var("_PR_LIB") {
Some(lib_dir) Some(lib_dir)
} else { } else {
option_env!("_PR_LIB").map(|dir| dir.to_string()) option_env!("_DEF_PR_LIB").map(|dir| dir.to_string())
} }
}; };