Make image::Id actually opaque
This commit is contained in:
parent
b52c7bb610
commit
58ea914ad2
3 changed files with 40 additions and 24 deletions
|
|
@ -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")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue