mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
chore: explicit default lib
This commit is contained in:
parent
6392118cb6
commit
58db47ec17
2 changed files with 3 additions and 3 deletions
|
|
@ -87,8 +87,8 @@ fn print_version() {
|
|||
"version: {}",
|
||||
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() {
|
||||
println!("lib: {}", lib.unwrap());
|
||||
println!("Default lib directory: {}", lib.unwrap());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ impl Data {
|
|||
if let Ok(lib_dir) = std::env::var("_PR_LIB") {
|
||||
Some(lib_dir)
|
||||
} else {
|
||||
option_env!("_PR_LIB").map(|dir| dir.to_string())
|
||||
option_env!("_DEF_PR_LIB").map(|dir| dir.to_string())
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue