From 098c507972a77e272b8c207b6983530b692dacef Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Tue, 14 Jan 2025 15:20:51 -0500 Subject: [PATCH] Fix typo --- rust/src/headless.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/headless.rs b/rust/src/headless.rs index c7d6c824b..5ef8a7b6b 100644 --- a/rust/src/headless.rs +++ b/rust/src/headless.rs @@ -143,7 +143,7 @@ pub enum LicenseLocation { /// This is useful if you want to know whether the core will use your license. If this returns `None` /// you should look setting the `BN_LICENSE` environment variable, or calling [`set_license`]. pub fn license_location() -> Option { - match std::env::var("BN_LICENSE_FILE") { + match std::env::var("BN_LICENSE") { Ok(_) => Some(LicenseLocation::EnvironmentVariable), Err(_) => { // Check the license_path to see if a file is there.