Skip to content

Commit

Permalink
Fix: all clippy warns
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Jul 19, 2024
1 parent 69b06e8 commit 1c9f473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/vent-rendering/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl VulkanImage {
1,
1,
vk::ImageAspectFlags::COLOR,
vk::ImageViewType::TYPE_2D
vk::ImageViewType::TYPE_2D,
);
if instance.validation {
if let Some(name) = name {
Expand Down
5 changes: 3 additions & 2 deletions crates/vent-runtime/src/render/d3/skybox_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::render::camera::Camera3D;

use super::create_tmp_cube;

#[allow(dead_code)]
pub struct SkyBoxRenderer {
pipeline: VulkanPipeline,
image: VulkanImage,
Expand Down Expand Up @@ -124,7 +125,7 @@ impl SkyBoxRenderer {

unsafe { device.create_descriptor_pool(&create_info, None) }.unwrap()
}

#[allow(dead_code)]
pub fn draw(
&mut self,
device: &ash::Device,
Expand Down Expand Up @@ -154,7 +155,7 @@ impl SkyBoxRenderer {
vk::PipelineBindPoint::GRAPHICS,
self.pipeline.pipeline_layout,
0,
&&self.descriptor_sets[buffer_index..=buffer_index],
&self.descriptor_sets[buffer_index..=buffer_index],
&[],
)
};
Expand Down

0 comments on commit 1c9f473

Please sign in to comment.