Merge pull request #2412 from hannobraun/rust

Upgrade to Rust 1.79.0
This commit is contained in:
Hanno Braun 2024-07-08 20:09:21 +02:00 committed by GitHub
commit 4449fefa78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 17 deletions

View File

@ -43,14 +43,11 @@ pub struct Model {
#[derive(Debug)]
pub struct Material {
pub name: String,
pub diffuse_texture: super::texture::Texture,
pub bind_group: wgpu::BindGroup,
}
#[derive(Debug)]
pub struct Mesh {
pub name: String,
pub vertex_buffer: wgpu::Buffer,
pub index_buffer: wgpu::Buffer,
pub num_elements: u32,
@ -126,11 +123,7 @@ pub fn load_model(
label: None,
});
materials.push(Material {
name: m.name,
diffuse_texture,
bind_group,
})
materials.push(Material { bind_group })
}
let meshes = models
@ -164,7 +157,6 @@ pub fn load_model(
});
Mesh {
name: file_name.to_string(),
vertex_buffer,
index_buffer,
num_elements: m.mesh.indices.len() as u32,

View File

@ -2,7 +2,6 @@ use image::{GenericImageView, ImageError};
#[derive(Debug)]
pub struct Texture {
pub texture: wgpu::Texture,
pub view: wgpu::TextureView,
pub sampler: wgpu::Sampler,
}
@ -77,10 +76,6 @@ impl Texture {
..Default::default()
});
Self {
texture,
view,
sampler,
}
Self { view, sampler }
}
}

View File

@ -1,5 +1,5 @@
[toolchain]
channel = "1.78.0"
channel = "1.79.0"
components = ["rustfmt", "clippy"]
targets = [
"aarch64-apple-ios",

View File

@ -26,7 +26,7 @@ features = ["blocking"]
[dependencies.clap]
version = "4.5.8"
features = ["std", "derive", "env"]
default_features = false
default-features = false
[dependencies.serde]
version = "1.0.204"