diff --git a/Cargo.lock b/Cargo.lock index bca7823..f24cbea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -574,7 +574,6 @@ dependencies = [ "ahash", "alot", "arboard", - "bytemuck", "cushy-macros", "figures", "image", diff --git a/Cargo.toml b/Cargo.toml index 00cc8ed..f302ca9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/src/window.rs b/src/window.rs index ae29088..fcbc53a 100644 --- a/src/window.rs +++ b/src/window.rs @@ -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);