Also 'cargo clippy --fix', as current clippy warns on more things.
This commit is contained in:
@@ -105,7 +105,7 @@ fn load_blocking(path: &String) -> anyhow::Result<Config> {
|
||||
pub async fn load<S: AsRef<str>>(path: S) -> anyhow::Result<Config> {
|
||||
let p = String::from(path.as_ref());
|
||||
let config = tokio::task::spawn_blocking(move || {
|
||||
load_blocking(&p).with_context(|| format!("Failed to load config from {}", p))
|
||||
load_blocking(&p).with_context(|| format!("Failed to load config from {p}"))
|
||||
})
|
||||
.await??;
|
||||
Ok(config)
|
||||
|
Reference in New Issue
Block a user