mirror of
https://codeberg.org/icewind/vbsp-to-gltf.git
synced 2026-06-03 10:14:08 +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 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>> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue