Skip to content

Commit

Permalink
sampleapp-vulkano: Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
simnalamburt committed Sep 22, 2024
1 parent 650e686 commit 2c006b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sampleapp-vulkano/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fn main() {
..BufferUsage::empty()
},
false,
obj.vertices.into_iter(),
obj.vertices,
)
.unwrap();
let index_buffer = CpuAccessibleBuffer::from_iter(
Expand All @@ -172,7 +172,7 @@ fn main() {
..BufferUsage::empty()
},
false,
obj.indices.into_iter(),
obj.indices,
)
.unwrap();

Expand Down Expand Up @@ -298,7 +298,7 @@ fn main() {
uniform_buffer.from_data(uniform_data).unwrap()
};

let layout = pipeline.layout().set_layouts().get(0).unwrap();
let layout = pipeline.layout().set_layouts().first().unwrap();
let set = PersistentDescriptorSet::new(
&descriptor_set_allocator,
layout.clone(),
Expand Down

0 comments on commit 2c006b1

Please sign in to comment.