-
-
Save xeioex/f4067f053ba62eeb529df4593adf0886 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/conf/issuer.rs b/src/conf/issuer.rs | |
| index ccd8807..086d4ce 100644 | |
| --- a/src/conf/issuer.rs | |
| +++ b/src/conf/issuer.rs | |
| @@ -465,16 +465,16 @@ const fn get_state_prefix() -> Option<&'static str> { | |
| unsafe { core::str::from_utf8_unchecked(bytes) } | |
| } | |
| - const VAL_0: Option<&str> = core::option_env!("NGX_ACME_STATE_PREFIX"); | |
| - if VAL_0.is_none() { | |
| + const RAW_ENV_PREFIX: Option<&str> = core::option_env!("NGX_ACME_STATE_PREFIX"); | |
| + if RAW_ENV_PREFIX.is_none() { | |
| return None; | |
| } | |
| // Strip all the trailing slashes from the path. | |
| - const VAL_1: &str = match VAL_0 { | |
| + const TRIMMED_ENV_PREFIX: &str = match RAW_ENV_PREFIX { | |
| Some(x) => trim_trailing_slashes(x), | |
| None => "", // unreachable | |
| }; | |
| - Some(constcat::concat!(VAL_1, "/")) | |
| + Some(constcat::concat!(TRIMMED_ENV_PREFIX, "/")) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment