Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
podusowski committed Aug 4, 2023
1 parent 0a936ee commit 6f5b926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async fn download_single(client: &reqwest::Client, url: &str) -> Result<Tile, Er
.await
.map_err(Error::from)?;

Tile::from_image_bytes(&image).map_err(|e| Error::Image(e))
Tile::from_image_bytes(&image).map_err(Error::Image)
}

async fn download<S>(
Expand Down

0 comments on commit 6f5b926

Please sign in to comment.