Update generated bindings #194
clippy
7 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 7 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.71.1 (eb26296b5 2023-08-03)
- cargo 1.71.1 (7f1d04c00 2023-07-29)
- clippy 0.1.71 (eb26296 2023-08-03)
Annotations
Check warning on line 1102 in tutorial/src/24_sampler.rs
github-actions / clippy
manual slice size calculation
warning: manual slice size calculation
--> tutorial/src/24_sampler.rs:1102:16
|
1102 | let size = (size_of::<u16>() * INDICES.len()) as u64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(INDICES)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
= note: `#[warn(clippy::manual_slice_size_calculation)]` on by default
Check warning on line 996 in tutorial/src/22_descriptor_sets.rs
github-actions / clippy
manual slice size calculation
warning: manual slice size calculation
--> tutorial/src/22_descriptor_sets.rs:996:16
|
996 | let size = (size_of::<u16>() * INDICES.len()) as u64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(INDICES)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
= note: `#[warn(clippy::manual_slice_size_calculation)]` on by default
Check warning on line 988 in tutorial/src/21_descriptor_layout.rs
github-actions / clippy
manual slice size calculation
warning: manual slice size calculation
--> tutorial/src/21_descriptor_layout.rs:988:16
|
988 | let size = (size_of::<u16>() * INDICES.len()) as u64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(INDICES)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
= note: `#[warn(clippy::manual_slice_size_calculation)]` on by default
Check warning on line 913 in tutorial/src/20_index_buffer.rs
github-actions / clippy
manual slice size calculation
warning: manual slice size calculation
--> tutorial/src/20_index_buffer.rs:913:16
|
913 | let size = (size_of::<u16>() * INDICES.len()) as u64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(INDICES)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
= note: `#[warn(clippy::manual_slice_size_calculation)]` on by default
Check warning on line 1226 in tutorial/src/26_depth_buffering.rs
github-actions / clippy
manual slice size calculation
warning: manual slice size calculation
--> tutorial/src/26_depth_buffering.rs:1226:16
|
1226 | let size = (size_of::<u16>() * INDICES.len()) as u64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(INDICES)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
= note: `#[warn(clippy::manual_slice_size_calculation)]` on by default
Check warning on line 1108 in tutorial/src/25_texture_mapping.rs
github-actions / clippy
manual slice size calculation
warning: manual slice size calculation
--> tutorial/src/25_texture_mapping.rs:1108:16
|
1108 | let size = (size_of::<u16>() * INDICES.len()) as u64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(INDICES)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
= note: `#[warn(clippy::manual_slice_size_calculation)]` on by default
Check warning on line 1087 in tutorial/src/23_texture_image.rs
github-actions / clippy
manual slice size calculation
warning: manual slice size calculation
--> tutorial/src/23_texture_image.rs:1087:16
|
1087 | let size = (size_of::<u16>() * INDICES.len()) as u64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::mem::size_of_val(INDICES)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_slice_size_calculation
= note: `#[warn(clippy::manual_slice_size_calculation)]` on by default