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