Make image::Id actually opaque

This commit is contained in:
Héctor Ramón Jiménez 2024-05-01 01:52:49 +02:00
parent b52c7bb610
commit 58ea914ad2
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 40 additions and 24 deletions

View file

@ -188,7 +188,7 @@ impl Pokemon {
{
let bytes = reqwest::get(&url).await?.bytes().await?;
Ok(image::Handle::from_memory(bytes))
Ok(image::Handle::from_bytes(bytes))
}
#[cfg(target_arch = "wasm32")]