clippy fixes

This commit is contained in:
Robin Appelman 2025-05-24 14:30:32 +02:00
commit ee978a4af5

View file

@ -123,7 +123,7 @@ fn setup() -> Result<Config> {
let args = Args::parse();
let toml = read_to_string(&args.config).map_err(|err| ServerError::File {
path: args.config.into(),
path: args.config,
err,
})?;
Ok(from_str(&toml)?)
@ -196,10 +196,10 @@ impl App {
fn cache(&self, map: &str, data: &[u8], options_key: u64) -> Result<()> {
let path = self.cache_path(map, options_key);
Ok(write(&path, data).map_err(|err| ServerError::File {
write(&path, data).map_err(|err| ServerError::File {
path: path.clone(),
err,
})?)
})
}
async fn download(&self, map: &str) -> Result<Vec<u8>> {