mirror of
https://github.com/danbulant/cushy
synced 2026-06-15 04:21:06 +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",
|
||||
"alot",
|
||||
"arboard",
|
||||
"bytemuck",
|
||||
"cushy-macros",
|
||||
"figures",
|
||||
"image",
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ arboard = "3.2.1"
|
|||
zeroize = "1.6.1"
|
||||
unicode-segmentation = "1.10.1"
|
||||
pollster = "0.3.0"
|
||||
bytemuck = "1.14.0"
|
||||
|
||||
|
||||
# [patch.crates-io]
|
||||
|
|
|
|||
|
|
@ -2774,8 +2774,7 @@ where
|
|||
Ok(())
|
||||
})?;
|
||||
|
||||
self.data
|
||||
.extend_from_slice(bytemuck::cast_slice(&slice.get_mapped_range()));
|
||||
self.data.extend_from_slice(&slice.get_mapped_range());
|
||||
|
||||
Format::convert_rgba(&mut self.data, render_size.width.get(), bytes_per_row);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue