From fc39e3295b249e53818876654f57a90f8650cc56 Mon Sep 17 00:00:00 2001 From: red binder Date: Sun, 12 Apr 2026 22:33:02 +0200 Subject: [PATCH] Correctly evaluate access key --- proxy-common/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/proxy-common/src/lib.rs b/proxy-common/src/lib.rs index 9c18f2e..75665a0 100644 --- a/proxy-common/src/lib.rs +++ b/proxy-common/src/lib.rs @@ -31,10 +31,7 @@ const RNEX_DEFAULT_PORT: u16 = match u16::from_str_radix(env!("RNEX_DEFAULT_PORT Err(_) => panic!("unable to get default port from env"), }; -const RNEX_ACCESS_KEY: u16 = match u16::from_str_radix(env!("RNEX_ACCESS_KEY"), 10) { - Ok(v) => v, - Err(_) => panic!("unable to get access key from env"), -}; +const RNEX_ACCESS_KEY: &'static str = env!("RNEX_ACCESS_KEY"); #[derive(Error, Debug)] pub enum Error {