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:
Jonathan Johnson 2024-01-03 11:41:26 -08:00
parent be0399279c
commit cdef6bcbc3
No known key found for this signature in database
GPG key ID: A66D6A34D6620579
3 changed files with 1 additions and 4 deletions

1
Cargo.lock generated
View file

@ -574,7 +574,6 @@ dependencies = [
"ahash",
"alot",
"arboard",
"bytemuck",
"cushy-macros",
"figures",
"image",

View file

@ -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]

View file

@ -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);