Fix import consistency for bytemuck
This commit is contained in:
parent
af386fd0a3
commit
9f73ee3206
3 changed files with 6 additions and 8 deletions
|
|
@ -1,7 +1,6 @@
|
|||
use crate::core::svg::{Data, Handle};
|
||||
use crate::core::{Color, Rectangle, Size};
|
||||
|
||||
use bytemuck::cast;
|
||||
use resvg::usvg;
|
||||
use rustc_hash::{FxHashMap, FxHashSet};
|
||||
|
||||
|
|
@ -157,7 +156,7 @@ impl Cache {
|
|||
for pixel in
|
||||
bytemuck::cast_slice_mut::<u8, u32>(image.data_mut())
|
||||
{
|
||||
*pixel = cast(
|
||||
*pixel = bytemuck::cast(
|
||||
tiny_skia::ColorU8::from_rgba(
|
||||
b,
|
||||
g,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue