summaryrefslogtreecommitdiffstats
path: root/src/utils/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/mod.rs')
-rw-r--r--src/utils/mod.rs6
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 {