diff --git a/bobashare-web/src/main.rs b/bobashare-web/src/main.rs index b41cdb21..bfb759fe 100644 --- a/bobashare-web/src/main.rs +++ b/bobashare-web/src/main.rs @@ -115,7 +115,7 @@ async fn main() -> anyhow::Result<()> { let backend = FileBackend::new(PathBuf::from(config.get_string("backend_path").unwrap())).await?; - let cleanup_interval = duration_str::parse(&config.get_string("cleanup_interval").unwrap()) + let cleanup_interval = duration_str::parse(config.get_string("cleanup_interval").unwrap()) .context("error parsing `cleanup_interval`")?; let base_url: Url = config .get_string("base_url") @@ -125,7 +125,7 @@ async fn main() -> anyhow::Result<()> { let raw_url = base_url.join("raw/").unwrap(); let id_length = config.get_int("id_length").unwrap().try_into().unwrap(); let default_expiry = TimeDelta::from_std( - duration_str::parse(&config.get_string("default_expiry").unwrap()) + duration_str::parse(config.get_string("default_expiry").unwrap()) .context("error parsing `default_expiry`")?, ) .unwrap();