fix: 🐛 Fix launcher crash; gui refactor #4149
clippy
20 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 20 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.80.1 (3f5fd8dd4 2024-08-06)
- cargo 1.80.1 (376290515 2024-07-16)
- clippy 0.1.80 (3f5fd8dd 2024-08-06)
Annotations
Check warning on line 8 in alvr\dashboard\src\dashboard\components\settings_controls\notice.rs
github-actions / clippy
function `notice` is never used
warning: function `notice` is never used
--> alvr\dashboard\src\dashboard\components\settings_controls\notice.rs:8:8
|
8 | pub fn notice(ui: &mut Ui, text: &str) {
| ^^^^^^
|
= note: `#[warn(dead_code)]` on by default
Check warning on line 19 in alvr\client_openxr\src\interaction.rs
github-actions / clippy
fields `aim_action` and `aim_space` are never read
warning: fields `aim_action` and `aim_space` are never read
--> alvr\client_openxr\src\interaction.rs:19:9
|
15 | pub struct HandInteraction {
| --------------- fields in this struct
...
19 | pub aim_action: xr::Action<xr::Posef>,
| ^^^^^^^^^^
20 | pub aim_space: xr::Space,
| ^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
Check warning on line 186 in alvr\client_openxr\src\lib.rs
github-actions / clippy
variable does not need to be mutable
warning: variable does not need to be mutable
--> alvr\client_openxr\src\lib.rs:186:9
|
186 | let mut stream_config = None::<StreamConfig>;
| ----^^^^^^^^^^^^^
| |
| help: remove this `mut`
Check warning on line 185 in alvr\client_openxr\src\lib.rs
github-actions / clippy
variable does not need to be mutable
warning: variable does not need to be mutable
--> alvr\client_openxr\src\lib.rs:185:9
|
185 | let mut last_lobby_message = String::new();
| ----^^^^^^^^^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
Check warning on line 198 in alvr\client_openxr\src\lib.rs
github-actions / clippy
unused variable: `xr_frame_stream`
warning: unused variable: `xr_frame_stream`
--> alvr\client_openxr\src\lib.rs:198:51
|
198 | let (xr_session, mut xr_frame_waiter, mut xr_frame_stream) = unsafe {
| ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_xr_frame_stream`
Check warning on line 198 in alvr\client_openxr\src\lib.rs
github-actions / clippy
unused variable: `xr_frame_waiter`
warning: unused variable: `xr_frame_waiter`
--> alvr\client_openxr\src\lib.rs:198:30
|
198 | let (xr_session, mut xr_frame_waiter, mut xr_frame_stream) = unsafe {
| ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_xr_frame_waiter`
Check warning on line 198 in alvr\client_openxr\src\lib.rs
github-actions / clippy
unused variable: `xr_session`
warning: unused variable: `xr_session`
--> alvr\client_openxr\src\lib.rs:198:14
|
198 | let (xr_session, mut xr_frame_waiter, mut xr_frame_stream) = unsafe {
| ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_xr_session`
Check warning on line 186 in alvr\client_openxr\src\lib.rs
github-actions / clippy
unused variable: `stream_config`
warning: unused variable: `stream_config`
--> alvr\client_openxr\src\lib.rs:186:13
|
186 | let mut stream_config = None::<StreamConfig>;
| ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stream_config`
Check warning on line 185 in alvr\client_openxr\src\lib.rs
github-actions / clippy
unused variable: `last_lobby_message`
warning: unused variable: `last_lobby_message`
--> alvr\client_openxr\src\lib.rs:185:13
|
185 | let mut last_lobby_message = String::new();
| ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_lobby_message`
|
= note: `#[warn(unused_variables)]` on by default
Check warning on line 204 in alvr\client_openxr\src\lib.rs
github-actions / clippy
unreachable definition
warning: unreachable definition
--> alvr\client_openxr\src\lib.rs:204:13
|
200 | .create_session(xr_system, &graphics::session_create_info(&graphics_context))
| ------------------------------------------------ any code following this expression is unreachable
...
204 | let xr_context = XrContext {
| ^^^^^^^^^^ unreachable definition
|
note: this expression has type `openxr::opengles::SessionCreateInfo`, which is uninhabited
--> alvr\client_openxr\src\lib.rs:200:45
|
200 | .create_session(xr_system, &graphics::session_create_info(&graphics_context))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: `#[warn(unreachable_code)]` on by default
Check warning on line 479 in alvr\client_core\src\c_api.rs
github-actions / clippy
doc list item missing indentation
warning: doc list item missing indentation
--> alvr\client_core\src\c_api.rs:479:5
|
479 | /// eye_gazes:
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: indent this line
|
479 | /// eye_gazes:
| ++
Check warning on line 476 in alvr\client_core\src\c_api.rs
github-actions / clippy
doc list item missing indentation
warning: doc list item missing indentation
--> alvr\client_core\src\c_api.rs:476:5
|
476 | /// hand_skeleton:
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: indent this line
|
476 | /// hand_skeleton:
| ++
Check warning on line 167 in alvr\client_core\src\graphics\mod.rs
github-actions / clippy
fields `adapter` and `dummy_surface` are never read
warning: fields `adapter` and `dummy_surface` are never read
--> alvr\client_core\src\graphics\mod.rs:167:5
|
165 | pub struct GraphicsContext {
| --------------- fields in this struct
166 | _instance: Instance,
167 | adapter: Adapter,
| ^^^^^^^
...
174 | dummy_surface: egl::Surface,
| ^^^^^^^^^^^^^
Check warning on line 7 in alvr\client_core\src\decoder.rs
github-actions / clippy
fields `codec`, `force_software_decoder`, `max_buffering_frames`, `buffering_history_weight`, `options`, and `config_buffer` are never read
warning: fields `codec`, `force_software_decoder`, `max_buffering_frames`, `buffering_history_weight`, `options`, and `config_buffer` are never read
--> alvr\client_core\src\decoder.rs:7:9
|
6 | pub struct DecoderConfig {
| ------------- fields in this struct
7 | pub codec: CodecType,
| ^^^^^
8 | pub force_software_decoder: bool,
| ^^^^^^^^^^^^^^^^^^^^^^
9 | pub max_buffering_frames: f32,
| ^^^^^^^^^^^^^^^^^^^^
10 | pub buffering_history_weight: f32,
| ^^^^^^^^^^^^^^^^^^^^^^^^
11 | pub options: Vec<(String, MediacodecDataType)>,
| ^^^^^^^
12 | pub config_buffer: Vec<u8>,
| ^^^^^^^^^^^^^
|
= note: `DecoderConfig` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
Check warning on line 72 in alvr\client_core\src\c_api.rs
github-actions / clippy
field `codec` is never read
warning: field `codec` is never read
--> alvr\client_core\src\c_api.rs:72:9
|
71 | DecoderConfig {
| ------------- field in this variant
72 | codec: AlvrCodec,
| ^^^^^
Check warning on line 65 in alvr\client_core\src\c_api.rs
github-actions / clippy
fields `device_id`, `duration_s`, `frequency`, and `amplitude` are never read
warning: fields `device_id`, `duration_s`, `frequency`, and `amplitude` are never read
--> alvr\client_core\src\c_api.rs:65:9
|
64 | Haptics {
| ------- fields in this variant
65 | device_id: u64,
| ^^^^^^^^^
66 | duration_s: f32,
| ^^^^^^^^^^
67 | frequency: f32,
| ^^^^^^^^^
68 | amplitude: f32,
| ^^^^^^^^^
Check warning on line 58 in alvr\client_core\src\c_api.rs
github-actions / clippy
fields `view_width`, `view_height`, `refresh_rate_hint`, and `enable_foveated_encoding` are never read
warning: fields `view_width`, `view_height`, `refresh_rate_hint`, and `enable_foveated_encoding` are never read
--> alvr\client_core\src\c_api.rs:58:9
|
57 | StreamingStarted {
| ---------------- fields in this variant
58 | view_width: u32,
| ^^^^^^^^^^
59 | view_height: u32,
| ^^^^^^^^^^^
60 | refresh_rate_hint: f32,
| ^^^^^^^^^^^^^^^^^
61 | enable_foveated_encoding: bool,
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
Check warning on line 15 in alvr\client_core\src\graphics\mod.rs
github-actions / clippy
unused imports: `InstanceDescriptor` and `InstanceFlags`
warning: unused imports: `InstanceDescriptor` and `InstanceFlags`
--> alvr\client_core\src\graphics\mod.rs:15:42
|
15 | Adapter, Device, Extent3d, Instance, InstanceDescriptor, InstanceFlags, Queue, Texture,
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
Check warning on line 12 in alvr\client_core\src\graphics\mod.rs
github-actions / clippy
unused import: `mem`
warning: unused import: `mem`
--> alvr\client_core\src\graphics\mod.rs:12:24
|
12 | use std::{ffi::c_void, mem, num::NonZeroU32, ptr};
| ^^^
|
= note: `#[warn(unused_imports)]` on by default
Check warning on line 12 in alvr\xtask\src\packaging.rs
github-actions / clippy
function `build_windows_installer` is never used
warning: function `build_windows_installer` is never used
--> alvr\xtask\src\packaging.rs:12:4
|
12 | fn build_windows_installer() {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default