mirror of
https://codeberg.org/icewind/vbsp-to-gltf.git
synced 2026-06-03 18:24:07 +02:00
clippy fixes
This commit is contained in:
parent
e6d7f27533
commit
ee978a4af5
1 changed files with 3 additions and 3 deletions
|
|
@ -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>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue