﻿cargo :     Checking ash_renderer v0.4.2 
(C:\Users\tilok\Downloads\Ash Renderer)
At line:1 char:1
+ cargo clippy -- -D warnings 2>&1 | Out-File 
-FilePath clippy_output.t ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (     
   Checking as...s\Ash Renderer):String) [], Rem  
  oteException
    + FullyQualifiedErrorId : NativeCommandError
 
error: unsafe function's docs are missing a `# 
Safety` section
  --> 
src\renderer\forward_plus_integration.rs:91:5
   |
91 |     pub unsafe fn init(&mut self, allocator: 
&vk_mem::Allocator) {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://r
ust-lang.github.io/rust-clippy/master/index.html#m
issing_safety_doc
   = note: `-D clippy::missing-safety-doc` 
implied by `-D warnings`
   = help: to override `-D warnings` add 
`#[allow(clippy::missing_safety_doc)]`

error: unsafe function's docs are missing a `# 
Safety` section
   --> 
src\renderer\forward_plus_integration.rs:117:5
    |
117 |     pub unsafe fn upload_to_gpu(&mut self, 
allocator: &vk_mem::Allocator) -> Result<()> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://
rust-lang.github.io/rust-clippy/master/index.html#
missing_safety_doc

error: unsafe function's docs are missing a `# 
Safety` section
   --> 
src\renderer\forward_plus_integration.rs:204:5
    |
204 |     pub unsafe fn destroy(&mut self, 
allocator: &vk_mem::Allocator) {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://
rust-lang.github.io/rust-clippy/master/index.html#
missing_safety_doc

error: unsafe function's docs are missing a `# 
Safety` section
  --> src\renderer\hiz_pass.rs:74:5
   |
74 | /     pub unsafe fn init(
75 | |         &mut self,
76 | |         allocator: &vk_mem::Allocator,
77 | |         vulkan_device: &VulkanDevice,
78 | |         width: u32,
79 | |         height: u32,
80 | |     ) {
   | |_____^
   |
   = help: for further information visit https://r
ust-lang.github.io/rust-clippy/master/index.html#m
issing_safety_doc

error: unsafe function's docs are missing a `# 
Safety` section
  --> src\renderer\indirect_draw.rs:80:5
   |
80 | /     pub unsafe fn init(
81 | |         &mut self,
82 | |         allocator: &vk_mem::Allocator,
83 | |         _vulkan_device: &VulkanDevice,
84 | |         max_objects: usize,
85 | |     ) {
   | |_____^
   |
   = help: for further information visit https://r
ust-lang.github.io/rust-clippy/master/index.html#m
issing_safety_doc

error: variables can be used directly in the 
`format!` string
   --> src\renderer\resource_registry.rs:285:13
    |
285 |             panic!("ResourceRegistry: 
Resource ID {} already exists in registry. Logic 
error in caller.", id);
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://
rust-lang.github.io/rust-clippy/master/index.html#
uninlined_format_args
    = note: `-D clippy::uninlined-format-args` 
implied by `-D warnings`
    = help: to override `-D warnings` add 
`#[allow(clippy::uninlined_format_args)]`
help: change this to
    |
285 -             panic!("ResourceRegistry: 
Resource ID {} already exists in registry. Logic 
error in caller.", id);
285 +             panic!("ResourceRegistry: 
Resource ID {id} already exists in registry. 
Logic error in caller.");
    |

error: method `next` can be confused for the 
standard trait method `std::iter::Iterator::next`
  --> src\renderer\temporal_upscaling.rs:84:5
   |
84 | /     pub fn next(&mut self) -> (f32, f32) {
85 | |         let idx = self.u as usize % 
self.b2.len();
86 | |         self.u = self.u.wrapping_add(1);
87 | |         (self.b2[idx] - 0.5, self.b3[idx] 
- 0.5)
88 | |     }
   | |_____^
   |
   = help: consider implementing the trait 
`std::iter::Iterator` or choosing a less 
ambiguous method name
   = help: for further information visit https://r
ust-lang.github.io/rust-clippy/master/index.html#s
hould_implement_trait
   = note: `-D clippy::should-implement-trait` 
implied by `-D warnings`
   = help: to override `-D warnings` add 
`#[allow(clippy::should_implement_trait)]`

error: could not compile `ash_renderer` (lib) due 
to 7 previous errors
