mirror of
https://github.com/danbulant/cushy
synced 2026-06-24 17:12:11 +00:00
Removed unnecessary bytemuck usage
This was copy-pasted from a Buffer<T> implementation that was removed from Kludgine, since Buffer<T> isn't public.
This commit is contained in:
parent
be0399279c
commit
cdef6bcbc3
3 changed files with 1 additions and 4 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -574,7 +574,6 @@ dependencies = [
|
||||||
"ahash",
|
"ahash",
|
||||||
"alot",
|
"alot",
|
||||||
"arboard",
|
"arboard",
|
||||||
"bytemuck",
|
|
||||||
"cushy-macros",
|
"cushy-macros",
|
||||||
"figures",
|
"figures",
|
||||||
"image",
|
"image",
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@ arboard = "3.2.1"
|
||||||
zeroize = "1.6.1"
|
zeroize = "1.6.1"
|
||||||
unicode-segmentation = "1.10.1"
|
unicode-segmentation = "1.10.1"
|
||||||
pollster = "0.3.0"
|
pollster = "0.3.0"
|
||||||
bytemuck = "1.14.0"
|
|
||||||
|
|
||||||
|
|
||||||
# [patch.crates-io]
|
# [patch.crates-io]
|
||||||
|
|
|
||||||
|
|
@ -2774,8 +2774,7 @@ where
|
||||||
Ok(())
|
Ok(())
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
self.data
|
self.data.extend_from_slice(&slice.get_mapped_range());
|
||||||
.extend_from_slice(bytemuck::cast_slice(&slice.get_mapped_range()));
|
|
||||||
|
|
||||||
Format::convert_rgba(&mut self.data, render_size.width.get(), bytes_per_row);
|
Format::convert_rgba(&mut self.data, render_size.width.get(), bytes_per_row);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue