diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/mod.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs index aa63f3b..340359c 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -36,11 +36,7 @@ pub fn now() -> String { } pub fn get_env_name(key: &str) -> String { - format!( - "{}_{}", - env!("CARGO_CRATE_NAME").to_uppercase(), - key.to_uppercase(), - ) + format!("{}_{key}", env!("CARGO_CRATE_NAME"),).to_ascii_uppercase() } pub fn estimate_token_length(text: &str) -> usize { |
