From 58db47ec17f6ea50f8aae53546864345b5c62019 Mon Sep 17 00:00:00 2001 From: iff Date: Thu, 12 Dec 2024 16:38:42 +0100 Subject: [PATCH] chore: explicit default lib --- core/src/args.rs | 4 ++-- core/src/shell.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/args.rs b/core/src/args.rs index 229cb7a..aeb2e44 100644 --- a/core/src/args.rs +++ b/core/src/args.rs @@ -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()); } } diff --git a/core/src/shell.rs b/core/src/shell.rs index 03bf9c9..0f2d7b8 100644 --- a/core/src/shell.rs +++ b/core/src/shell.rs @@ -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()) } };