From 23857d38d9c4d3b094d8c9bd356a26e3ecfb0c9a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 21 Sep 2023 20:56:24 -0700 Subject: [PATCH] no reason to double reference --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index c7ad95fa..221e32cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -645,7 +645,7 @@ impl strafe_client::framework::Example for GraphicsData { _ => unreachable!(), }; - let skybox_image = ddsfile::Dds::read(&mut std::io::Cursor::new(&bytes)).unwrap(); + let skybox_image = ddsfile::Dds::read(&mut std::io::Cursor::new(bytes)).unwrap(); let skybox_texture = device.create_texture_with_data( queue, @@ -671,9 +671,9 @@ impl strafe_client::framework::Example for GraphicsData { //squid let squid_texture_view={ - let bytes = &include_bytes!("../images/squid.dds")[..]; + let bytes = include_bytes!("../images/squid.dds"); - let image = ddsfile::Dds::read(&mut std::io::Cursor::new(&bytes)).unwrap(); + let image = ddsfile::Dds::read(&mut std::io::Cursor::new(bytes)).unwrap(); let size = wgpu::Extent3d { width: image.get_width(),