replace single char string pattern with char pattern
This commit is contained in:
parent
516e791ad6
commit
bd7823dc14
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ impl Default for CacheConfig {
|
||||||
pub async fn load() -> Result<Config> {
|
pub async fn load() -> Result<Config> {
|
||||||
let config_file = env::var(format!(
|
let config_file = env::var(format!(
|
||||||
"{}_CONFIG",
|
"{}_CONFIG",
|
||||||
env!("CARGO_BIN_NAME").to_uppercase().replace("-", "_")
|
env!("CARGO_BIN_NAME").to_uppercase().replace('-', "_")
|
||||||
))
|
))
|
||||||
.unwrap_or(String::from("config.toml"));
|
.unwrap_or(String::from("config.toml"));
|
||||||
match tokio::fs::OpenOptions::new()
|
match tokio::fs::OpenOptions::new()
|
||||||
|
|
Loading…
Reference in a new issue