Skip to content

fix(server_openvr): 🐛 Fix hand tracking when using Disabled inter… #844

fix(server_openvr): 🐛 Fix hand tracking when using Disabled inter…

fix(server_openvr): 🐛 Fix hand tracking when using Disabled inter… #844

Triggered via push September 18, 2024 19:52
Status Success
Total duration 28s
Artifacts

wiki.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

147 warnings
wiki
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, cmbrose/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
wiki
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, cmbrose/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L413
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:413:25 | 413 | ui[1].label(&format!( | _________________________^ 414 | | "{}% ({})", 415 | | statistics.battery_hmd, 416 | | if statistics.hmd_plugged { ... | 420 | | } 421 | | )); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 413 ~ ui[1].label(format!( 414 + "{}% ({})", 415 + statistics.battery_hmd, 416 + if statistics.hmd_plugged { 417 + "plugged" 418 + } else { 419 + "unplugged" 420 + } 421 ~ )); |
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L410
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:410:25 | 410 | ui[1].label(&format!("{} FPS", statistics.server_fps)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{} FPS", statistics.server_fps)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L407
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:407:25 | 407 | ui[1].label(&format!("{} FPS", statistics.client_fps)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{} FPS", statistics.client_fps)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L401
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:401:25 | 401 | ui[1].label(&format!( | _________________________^ 402 | | "{} packets ({} packets/s)", 403 | | statistics.packets_lost_total, statistics.packets_lost_per_sec 404 | | )); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 401 ~ ui[1].label(format!( 402 + "{} packets ({} packets/s)", 403 + statistics.packets_lost_total, statistics.packets_lost_per_sec 404 ~ )); |
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L398
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:398:25 | 398 | ui[1].label(&format!("{:.2} ms", statistics.decode_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2} ms", statistics.decode_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L395
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:395:25 | 395 | ui[1].label(&format!("{:.2} ms", statistics.network_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2} ms", statistics.network_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L392
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:392:25 | 392 | ui[1].label(&format!("{:.2} ms", statistics.encode_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2} ms", statistics.encode_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L389
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:389:25 | 389 | ui[1].label(&format!("{:.0} ms", statistics.total_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.0} ms", statistics.total_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L386
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:386:25 | 386 | ui[1].label(&format!("{:.1} Mbps", statistics.video_mbits_per_sec)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.1} Mbps", statistics.video_mbits_per_sec)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L383
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:383:25 | 383 | ui[1].label(&format!("{} MB", statistics.video_mbytes_total)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{} MB", statistics.video_mbytes_total)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L377
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:377:25 | 377 | ui[1].label(&format!( | _________________________^ 378 | | "{} packets ({} packets/s)", 379 | | statistics.video_packets_total, statistics.video_packets_per_sec 380 | | )); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 377 ~ ui[1].label(format!( 378 + "{} packets ({} packets/s)", 379 + statistics.video_packets_total, statistics.video_packets_per_sec 380 ~ )); |
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L329
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:329:49 | 329 | ui.colored_label(color, &format!("{text}: {:.2} Mbps", value / 1e6)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{text}: {:.2} Mbps", value / 1e6)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L171
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:171:49 | 171 | ui.colored_label(color, &format!("{:.2}ms", value_s * 1000.0)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2}ms", value_s * 1000.0)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
function `notice` is never used: alvr/dashboard/src/dashboard/components/settings_controls/notice.rs#L8
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
deref which would be done by auto-deref: alvr/client_openxr/src/lib.rs#L360
warning: deref which would be done by auto-deref --> alvr/client_openxr/src/lib.rs:360:66 | 360 | let new_config = ParsedStreamConfig::new(&*config); | ^^^^^^^^ help: try: `&config` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref = note: `#[warn(clippy::explicit_auto_deref)]` on by default
using `clone` on type `Instance` which implements the `Copy` trait: alvr/client_openxr/src/extra_extensions/mod.rs#L48
warning: using `clone` on type `Instance` which implements the `Copy` trait --> alvr/client_openxr/src/extra_extensions/mod.rs:48:33 | 48 | base_function_ptrs: instance.fp().clone(), | ^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instance.fp()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy = note: `#[warn(clippy::clone_on_copy)]` on by default
fields `aim_action` and `aim_space` are never read: alvr/client_openxr/src/interaction.rs#L26
warning: fields `aim_action` and `aim_space` are never read --> alvr/client_openxr/src/interaction.rs:26:9 | 22 | pub struct HandInteraction { | --------------- fields in this struct ... 26 | pub aim_action: xr::Action<xr::Posef>, | ^^^^^^^^^^ 27 | pub aim_space: xr::Space, | ^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
variable does not need to be mutable: alvr/client_openxr/src/lib.rs#L204
warning: variable does not need to be mutable --> alvr/client_openxr/src/lib.rs:204:9 | 204 | let mut parsed_stream_config = None::<ParsedStreamConfig>; | ----^^^^^^^^^^^^^^^^^^^^ | | | help: remove this `mut`
variable does not need to be mutable: alvr/client_openxr/src/lib.rs#L203
warning: variable does not need to be mutable --> alvr/client_openxr/src/lib.rs:203:9 | 203 | let mut last_lobby_message = String::new(); | ----^^^^^^^^^^^^^^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `xr_frame_stream`: alvr/client_openxr/src/lib.rs#L216
warning: unused variable: `xr_frame_stream` --> alvr/client_openxr/src/lib.rs:216:51 | 216 | 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`
unused variable: `xr_frame_waiter`: alvr/client_openxr/src/lib.rs#L216
warning: unused variable: `xr_frame_waiter` --> alvr/client_openxr/src/lib.rs:216:30 | 216 | 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`
unused variable: `xr_session`: alvr/client_openxr/src/lib.rs#L216
warning: unused variable: `xr_session` --> alvr/client_openxr/src/lib.rs:216:14 | 216 | let (xr_session, mut xr_frame_waiter, mut xr_frame_stream) = unsafe { | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_xr_session`
unused variable: `parsed_stream_config`: alvr/client_openxr/src/lib.rs#L204
warning: unused variable: `parsed_stream_config` --> alvr/client_openxr/src/lib.rs:204:13 | 204 | let mut parsed_stream_config = None::<ParsedStreamConfig>; | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parsed_stream_config`
unused variable: `last_lobby_message`: alvr/client_openxr/src/lib.rs#L203
warning: unused variable: `last_lobby_message` --> alvr/client_openxr/src/lib.rs:203:13 | 203 | 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
unreachable definition: alvr/client_openxr/src/lib.rs#L222
warning: unreachable definition --> alvr/client_openxr/src/lib.rs:222:13 | 218 | .create_session(xr_system, &graphics::session_create_info(&graphics_context)) | ------------------------------------------------ any code following this expression is unreachable ... 222 | let xr_context = XrContext { | ^^^^^^^^^^ unreachable definition | note: this expression has type `openxr::opengles::SessionCreateInfo`, which is uninhabited --> alvr/client_openxr/src/lib.rs:218:45 | 218 | .create_session(xr_system, &graphics::session_create_info(&graphics_context)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: `#[warn(unreachable_code)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: alvr/client_core/src/graphics/stream.rs#L166
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr/client_core/src/graphics/stream.rs:166:43 | 166 | super::create_texture(&device, view_resolution, target_format); | ^^^^^^^ help: change this to: `device` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
the loop variable `i` is only used to index `swapchain_textures`: alvr/client_core/src/graphics/stream.rs#L164
warning: the loop variable `i` is only used to index `swapchain_textures` --> alvr/client_core/src/graphics/stream.rs:164:22 | 164 | for i in 0..2 { | ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop = note: `#[warn(clippy::needless_range_loop)]` on by default help: consider using an iterator | 164 | for <item> in &swapchain_textures { | ~~~~~~ ~~~~~~~~~~~~~~~~~~~
doc list item without indentation: alvr/client_core/src/c_api.rs#L496
warning: doc list item without indentation --> alvr/client_core/src/c_api.rs:496:5 | 496 | /// 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 | 496 | /// eye_gazes: | ++
doc list item without indentation: alvr/client_core/src/c_api.rs#L493
warning: doc list item without indentation --> alvr/client_core/src/c_api.rs:493:5 | 493 | /// 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 | 493 | /// hand_skeleton: | ++
fields `codec`, `force_software_decoder`, `max_buffering_frames`, `buffering_history_weight`, `options`, and `config_buffer` are never read: alvr/client_core/src/decoder.rs#L7
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
field `codec` is never read: alvr/client_core/src/c_api.rs#L73
warning: field `codec` is never read --> alvr/client_core/src/c_api.rs:73:9 | 72 | DecoderConfig { | ------------- field in this variant 73 | codec: AlvrCodec, | ^^^^^
fields `device_id`, `duration_s`, `frequency`, and `amplitude` are never read: alvr/client_core/src/c_api.rs#L66
warning: fields `device_id`, `duration_s`, `frequency`, and `amplitude` are never read --> alvr/client_core/src/c_api.rs:66:9 | 65 | Haptics { | ------- fields in this variant 66 | device_id: u64, | ^^^^^^^^^ 67 | duration_s: f32, | ^^^^^^^^^^ 68 | frequency: f32, | ^^^^^^^^^ 69 | amplitude: f32, | ^^^^^^^^^
fields `view_width`, `view_height`, `refresh_rate_hint`, and `enable_foveated_encoding` are never read: alvr/client_core/src/c_api.rs#L59
warning: fields `view_width`, `view_height`, `refresh_rate_hint`, and `enable_foveated_encoding` are never read --> alvr/client_core/src/c_api.rs:59:9 | 58 | StreamingStarted { | ---------------- fields in this variant 59 | view_width: u32, | ^^^^^^^^^^ 60 | view_height: u32, | ^^^^^^^^^^^ 61 | refresh_rate_hint: f32, | ^^^^^^^^^^^^^^^^^ 62 | enable_foveated_encoding: bool, | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
function `build_windows_installer` is never used: alvr/xtask/src/packaging.rs#L13
warning: function `build_windows_installer` is never used --> alvr/xtask/src/packaging.rs:13:4 | 13 | fn build_windows_installer() { | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L413
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:413:25 | 413 | ui[1].label(&format!( | _________________________^ 414 | | "{}% ({})", 415 | | statistics.battery_hmd, 416 | | if statistics.hmd_plugged { ... | 420 | | } 421 | | )); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 413 ~ ui[1].label(format!( 414 + "{}% ({})", 415 + statistics.battery_hmd, 416 + if statistics.hmd_plugged { 417 + "plugged" 418 + } else { 419 + "unplugged" 420 + } 421 ~ )); |
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L410
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:410:25 | 410 | ui[1].label(&format!("{} FPS", statistics.server_fps)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{} FPS", statistics.server_fps)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L407
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:407:25 | 407 | ui[1].label(&format!("{} FPS", statistics.client_fps)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{} FPS", statistics.client_fps)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L401
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:401:25 | 401 | ui[1].label(&format!( | _________________________^ 402 | | "{} packets ({} packets/s)", 403 | | statistics.packets_lost_total, statistics.packets_lost_per_sec 404 | | )); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 401 ~ ui[1].label(format!( 402 + "{} packets ({} packets/s)", 403 + statistics.packets_lost_total, statistics.packets_lost_per_sec 404 ~ )); |
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L398
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:398:25 | 398 | ui[1].label(&format!("{:.2} ms", statistics.decode_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2} ms", statistics.decode_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L395
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:395:25 | 395 | ui[1].label(&format!("{:.2} ms", statistics.network_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2} ms", statistics.network_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L392
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:392:25 | 392 | ui[1].label(&format!("{:.2} ms", statistics.encode_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2} ms", statistics.encode_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L389
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:389:25 | 389 | ui[1].label(&format!("{:.0} ms", statistics.total_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.0} ms", statistics.total_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L386
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:386:25 | 386 | ui[1].label(&format!("{:.1} Mbps", statistics.video_mbits_per_sec)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.1} Mbps", statistics.video_mbits_per_sec)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L383
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:383:25 | 383 | ui[1].label(&format!("{} MB", statistics.video_mbytes_total)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{} MB", statistics.video_mbytes_total)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L377
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:377:25 | 377 | ui[1].label(&format!( | _________________________^ 378 | | "{} packets ({} packets/s)", 379 | | statistics.video_packets_total, statistics.video_packets_per_sec 380 | | )); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 377 ~ ui[1].label(format!( 378 + "{} packets ({} packets/s)", 379 + statistics.video_packets_total, statistics.video_packets_per_sec 380 ~ )); |
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L329
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:329:49 | 329 | ui.colored_label(color, &format!("{text}: {:.2} Mbps", value / 1e6)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{text}: {:.2} Mbps", value / 1e6)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr/dashboard/src/dashboard/components/statistics.rs#L171
warning: the borrowed expression implements the required traits --> alvr/dashboard/src/dashboard/components/statistics.rs:171:49 | 171 | ui.colored_label(color, &format!("{:.2}ms", value_s * 1000.0)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2}ms", value_s * 1000.0)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
function `notice` is never used: alvr/dashboard/src/dashboard/components/settings_controls/notice.rs#L8
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
unused import: `self::VkLoaderFeastureFlagBits as VkLoaderFlagBits`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L71964
warning: unused import: `self::VkLoaderFeastureFlagBits as VkLoaderFlagBits` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:71964:9 | 71964 | pub use self::VkLoaderFeastureFlagBits as VkLoaderFlagBits; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkPrivateDataSlotCreateFlagBits as VkPrivateDataSlotCreateFlagBitsEXT`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L64273
warning: unused import: `self::VkPrivateDataSlotCreateFlagBits as VkPrivateDataSlotCreateFlagBitsEXT` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:64273:9 | 64273 | pub use self::VkPrivateDataSlotCreateFlagBits as VkPrivateDataSlotCreateFlagBitsEXT; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkToolPurposeFlagBits as VkToolPurposeFlagBitsEXT`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L59508
warning: unused import: `self::VkToolPurposeFlagBits as VkToolPurposeFlagBitsEXT` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:59508:9 | 59508 | pub use self::VkToolPurposeFlagBits as VkToolPurposeFlagBitsEXT; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkPipelineCreationFeedbackFlagBits as VkPipelineCreationFeedbackFlagBitsEXT`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L56634
warning: unused import: `self::VkPipelineCreationFeedbackFlagBits as VkPipelineCreationFeedbackFlagBitsEXT` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:56634:9 | 56634 | pub use self::VkPipelineCreationFeedbackFlagBits as VkPipelineCreationFeedbackFlagBitsEXT; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkQueueGlobalPriorityKHR as VkQueueGlobalPriorityEXT`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L55649
warning: unused import: `self::VkQueueGlobalPriorityKHR as VkQueueGlobalPriorityEXT` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:55649:9 | 55649 | pub use self::VkQueueGlobalPriorityKHR as VkQueueGlobalPriorityEXT; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkBuildAccelerationStructureFlagBitsKHR as VkBuildAccelerationStructureFlagBitsNV`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L53622
warning: unused import: `self::VkBuildAccelerationStructureFlagBitsKHR as VkBuildAccelerationStructureFlagBitsNV` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:53622:9 | 53622 | pub use self::VkBuildAccelerationStructureFlagBitsKHR as VkBuildAccelerationStructureFlagBitsNV; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkGeometryInstanceFlagBitsKHR as VkGeometryInstanceFlagBitsNV`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L53605
warning: unused import: `self::VkGeometryInstanceFlagBitsKHR as VkGeometryInstanceFlagBitsNV` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:53605:9 | 53605 | pub use self::VkGeometryInstanceFlagBitsKHR as VkGeometryInstanceFlagBitsNV; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkGeometryFlagBitsKHR as VkGeometryFlagBitsNV`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L53584
warning: unused import: `self::VkGeometryFlagBitsKHR as VkGeometryFlagBitsNV` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:53584:9 | 53584 | pub use self::VkGeometryFlagBitsKHR as VkGeometryFlagBitsNV; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkCopyAccelerationStructureModeKHR as VkCopyAccelerationStructureModeNV`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L53567
warning: unused import: `self::VkCopyAccelerationStructureModeKHR as VkCopyAccelerationStructureModeNV` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:53567:9 | 53567 | pub use self::VkCopyAccelerationStructureModeKHR as VkCopyAccelerationStructureModeNV; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkGeometryTypeKHR as VkGeometryTypeNV`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L53537
warning: unused import: `self::VkGeometryTypeKHR as VkGeometryTypeNV` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:53537:9 | 53537 | pub use self::VkGeometryTypeKHR as VkGeometryTypeNV; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkRayTracingShaderGroupTypeKHR as VkRayTracingShaderGroupTypeNV`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L53529
warning: unused import: `self::VkRayTracingShaderGroupTypeKHR as VkRayTracingShaderGroupTypeNV` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:53529:9 | 53529 | pub use self::VkRayTracingShaderGroupTypeKHR as VkRayTracingShaderGroupTypeNV; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkDescriptorBindingFlagBits as VkDescriptorBindingFlagBitsEXT`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L52892
warning: unused import: `self::VkDescriptorBindingFlagBits as VkDescriptorBindingFlagBitsEXT` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:52892:9 | 52892 | pub use self::VkDescriptorBindingFlagBits as VkDescriptorBindingFlagBitsEXT; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkSamplerReductionMode as VkSamplerReductionModeEXT`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L50733
warning: unused import: `self::VkSamplerReductionMode as VkSamplerReductionModeEXT` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:50733:9 | 50733 | pub use self::VkSamplerReductionMode as VkSamplerReductionModeEXT; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkSubmitFlagBits as VkSubmitFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L44495
warning: unused import: `self::VkSubmitFlagBits as VkSubmitFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:44495:9 | 44495 | pub use self::VkSubmitFlagBits as VkSubmitFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkSemaphoreWaitFlagBits as VkSemaphoreWaitFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L42667
warning: unused import: `self::VkSemaphoreWaitFlagBits as VkSemaphoreWaitFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:42667:9 | 42667 | pub use self::VkSemaphoreWaitFlagBits as VkSemaphoreWaitFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkSemaphoreType as VkSemaphoreTypeKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L42666
warning: unused import: `self::VkSemaphoreType as VkSemaphoreTypeKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:42666:9 | 42666 | pub use self::VkSemaphoreType as VkSemaphoreTypeKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkResolveModeFlagBits as VkResolveModeFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L42661
warning: unused import: `self::VkResolveModeFlagBits as VkResolveModeFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:42661:9 | 42661 | pub use self::VkResolveModeFlagBits as VkResolveModeFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkShaderFloatControlsIndependence as VkShaderFloatControlsIndependenceKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L42659
warning: unused import: `self::VkShaderFloatControlsIndependence as VkShaderFloatControlsIndependenceKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:42659:9 | 42659 | pub use self::VkShaderFloatControlsIndependence as VkShaderFloatControlsIndependenceKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkDriverId as VkDriverIdKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L42656
warning: unused import: `self::VkDriverId as VkDriverIdKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:42656:9 | 42656 | pub use self::VkDriverId as VkDriverIdKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkSamplerYcbcrRange as VkSamplerYcbcrRangeKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L42212
warning: unused import: `self::VkSamplerYcbcrRange as VkSamplerYcbcrRangeKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:42212:9 | 42212 | pub use self::VkSamplerYcbcrRange as VkSamplerYcbcrRangeKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkSamplerYcbcrModelConversion as VkSamplerYcbcrModelConversionKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L42211
warning: unused import: `self::VkSamplerYcbcrModelConversion as VkSamplerYcbcrModelConversionKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:42211:9 | 42211 | pub use self::VkSamplerYcbcrModelConversion as VkSamplerYcbcrModelConversionKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkChromaLocation as VkChromaLocationKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L42210
warning: unused import: `self::VkChromaLocation as VkChromaLocationKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:42210:9 | 42210 | pub use self::VkChromaLocation as VkChromaLocationKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkTessellationDomainOrigin as VkTessellationDomainOriginKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L41553
warning: unused import: `self::VkTessellationDomainOrigin as VkTessellationDomainOriginKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:41553:9 | 41553 | pub use self::VkTessellationDomainOrigin as VkTessellationDomainOriginKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkPointClippingBehavior as VkPointClippingBehaviorKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L41552
warning: unused import: `self::VkPointClippingBehavior as VkPointClippingBehaviorKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:41552:9 | 41552 | pub use self::VkPointClippingBehavior as VkPointClippingBehaviorKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkFenceImportFlagBits as VkFenceImportFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L40581
warning: unused import: `self::VkFenceImportFlagBits as VkFenceImportFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:40581:9 | 40581 | pub use self::VkFenceImportFlagBits as VkFenceImportFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkExternalFenceFeatureFlagBits as VkExternalFenceFeatureFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L40563
warning: unused import: `self::VkExternalFenceFeatureFlagBits as VkExternalFenceFeatureFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:40563:9 | 40563 | pub use self::VkExternalFenceFeatureFlagBits as VkExternalFenceFeatureFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkExternalFenceHandleTypeFlagBits as VkExternalFenceHandleTypeFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L40561
warning: unused import: `self::VkExternalFenceHandleTypeFlagBits as VkExternalFenceHandleTypeFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:40561:9 | 40561 | pub use self::VkExternalFenceHandleTypeFlagBits as VkExternalFenceHandleTypeFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkDescriptorUpdateTemplateType as VkDescriptorUpdateTemplateTypeKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L40369
warning: unused import: `self::VkDescriptorUpdateTemplateType as VkDescriptorUpdateTemplateTypeKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:40369:9 | 40369 | pub use self::VkDescriptorUpdateTemplateType as VkDescriptorUpdateTemplateTypeKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkSemaphoreImportFlagBits as VkSemaphoreImportFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L39889
warning: unused import: `self::VkSemaphoreImportFlagBits as VkSemaphoreImportFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:39889:9 | 39889 | pub use self::VkSemaphoreImportFlagBits as VkSemaphoreImportFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkExternalSemaphoreFeatureFlagBits as VkExternalSemaphoreFeatureFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L39871
warning: unused import: `self::VkExternalSemaphoreFeatureFlagBits as VkExternalSemaphoreFeatureFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:39871:9 | 39871 | pub use self::VkExternalSemaphoreFeatureFlagBits as VkExternalSemaphoreFeatureFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkExternalSemaphoreHandleTypeFlagBits as VkExternalSemaphoreHandleTypeFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L39869
warning: unused import: `self::VkExternalSemaphoreHandleTypeFlagBits as VkExternalSemaphoreHandleTypeFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:39869:9 | 39869 | pub use self::VkExternalSemaphoreHandleTypeFlagBits as VkExternalSemaphoreHandleTypeFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkExternalMemoryFeatureFlagBits as VkExternalMemoryFeatureFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L39607
warning: unused import: `self::VkExternalMemoryFeatureFlagBits as VkExternalMemoryFeatureFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:39607:9 | 39607 | pub use self::VkExternalMemoryFeatureFlagBits as VkExternalMemoryFeatureFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkExternalMemoryHandleTypeFlagBits as VkExternalMemoryHandleTypeFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L39605
warning: unused import: `self::VkExternalMemoryHandleTypeFlagBits as VkExternalMemoryHandleTypeFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:39605:9 | 39605 | pub use self::VkExternalMemoryHandleTypeFlagBits as VkExternalMemoryHandleTypeFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkMemoryAllocateFlagBits as VkMemoryAllocateFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L39520
warning: unused import: `self::VkMemoryAllocateFlagBits as VkMemoryAllocateFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:39520:9 | 39520 | pub use self::VkMemoryAllocateFlagBits as VkMemoryAllocateFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkPeerMemoryFeatureFlagBits as VkPeerMemoryFeatureFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L39518
warning: unused import: `self::VkPeerMemoryFeatureFlagBits as VkPeerMemoryFeatureFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:39518:9 | 39518 | pub use self::VkPeerMemoryFeatureFlagBits as VkPeerMemoryFeatureFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `self::VkRenderingFlagBits as VkRenderingFlagBitsKHR`: /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs#L39055
warning: unused import: `self::VkRenderingFlagBits as VkRenderingFlagBitsKHR` --> /home/runner/work/ALVR/ALVR/target/debug/build/alvr_vulkan_layer-e3bb839afe81b656/out/layer_bindings.rs:39055:9 | 39055 | pub use self::VkRenderingFlagBits as VkRenderingFlagBitsKHR; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
deref which would be done by auto-deref: alvr/client_openxr/src/lib.rs#L360
warning: deref which would be done by auto-deref --> alvr/client_openxr/src/lib.rs:360:66 | 360 | let new_config = ParsedStreamConfig::new(&*config); | ^^^^^^^^ help: try: `&config` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref = note: `#[warn(clippy::explicit_auto_deref)]` on by default
using `clone` on type `Instance` which implements the `Copy` trait: alvr/client_openxr/src/extra_extensions/mod.rs#L48
warning: using `clone` on type `Instance` which implements the `Copy` trait --> alvr/client_openxr/src/extra_extensions/mod.rs:48:33 | 48 | base_function_ptrs: instance.fp().clone(), | ^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instance.fp()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy = note: `#[warn(clippy::clone_on_copy)]` on by default
fields `aim_action` and `aim_space` are never read: alvr/client_openxr/src/interaction.rs#L26
warning: fields `aim_action` and `aim_space` are never read --> alvr/client_openxr/src/interaction.rs:26:9 | 22 | pub struct HandInteraction { | --------------- fields in this struct ... 26 | pub aim_action: xr::Action<xr::Posef>, | ^^^^^^^^^^ 27 | pub aim_space: xr::Space, | ^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
variable does not need to be mutable: alvr/client_openxr/src/lib.rs#L204
warning: variable does not need to be mutable --> alvr/client_openxr/src/lib.rs:204:9 | 204 | let mut parsed_stream_config = None::<ParsedStreamConfig>; | ----^^^^^^^^^^^^^^^^^^^^ | | | help: remove this `mut`
variable does not need to be mutable: alvr/client_openxr/src/lib.rs#L203
warning: variable does not need to be mutable --> alvr/client_openxr/src/lib.rs:203:9 | 203 | let mut last_lobby_message = String::new(); | ----^^^^^^^^^^^^^^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `xr_frame_stream`: alvr/client_openxr/src/lib.rs#L216
warning: unused variable: `xr_frame_stream` --> alvr/client_openxr/src/lib.rs:216:51 | 216 | 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`
unused variable: `xr_frame_waiter`: alvr/client_openxr/src/lib.rs#L216
warning: unused variable: `xr_frame_waiter` --> alvr/client_openxr/src/lib.rs:216:30 | 216 | 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`
unused variable: `xr_session`: alvr/client_openxr/src/lib.rs#L216
warning: unused variable: `xr_session` --> alvr/client_openxr/src/lib.rs:216:14 | 216 | let (xr_session, mut xr_frame_waiter, mut xr_frame_stream) = unsafe { | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_xr_session`
unused variable: `parsed_stream_config`: alvr/client_openxr/src/lib.rs#L204
warning: unused variable: `parsed_stream_config` --> alvr/client_openxr/src/lib.rs:204:13 | 204 | let mut parsed_stream_config = None::<ParsedStreamConfig>; | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parsed_stream_config`
unused variable: `last_lobby_message`: alvr/client_openxr/src/lib.rs#L203
warning: unused variable: `last_lobby_message` --> alvr/client_openxr/src/lib.rs:203:13 | 203 | 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
unreachable definition: alvr/client_openxr/src/lib.rs#L222
warning: unreachable definition --> alvr/client_openxr/src/lib.rs:222:13 | 218 | .create_session(xr_system, &graphics::session_create_info(&graphics_context)) | ------------------------------------------------ any code following this expression is unreachable ... 222 | let xr_context = XrContext { | ^^^^^^^^^^ unreachable definition | note: this expression has type `openxr::opengles::SessionCreateInfo`, which is uninhabited --> alvr/client_openxr/src/lib.rs:218:45 | 218 | .create_session(xr_system, &graphics::session_create_info(&graphics_context)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: `#[warn(unreachable_code)]` on by default
unused variable: `config`: alvr/server_core/src/connection.rs#L734
warning: unused variable: `config` --> alvr/server_core/src/connection.rs:734:52 | 734 | let game_audio_thread = if let Switch::Enabled(config) = settings.audio.game_audio { | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config`
unused variable: `game_audio_config`: alvr/server_core/src/connection.rs#L593
warning: unused variable: `game_audio_config` --> alvr/server_core/src/connection.rs:593:32 | 593 | if let Switch::Enabled(game_audio_config) = &settings.audio.game_audio { | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_game_audio_config` | = note: `#[warn(unused_variables)]` on by default
unused import: `alvr_audio::AudioDevice`: alvr/server_core/src/connection.rs#L12
warning: unused import: `alvr_audio::AudioDevice` --> alvr/server_core/src/connection.rs:12:5 | 12 | use alvr_audio::AudioDevice; | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: alvr/client_core/src/graphics/stream.rs#L166
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr/client_core/src/graphics/stream.rs:166:43 | 166 | super::create_texture(&device, view_resolution, target_format); | ^^^^^^^ help: change this to: `device` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
the loop variable `i` is only used to index `swapchain_textures`: alvr/client_core/src/graphics/stream.rs#L164
warning: the loop variable `i` is only used to index `swapchain_textures` --> alvr/client_core/src/graphics/stream.rs:164:22 | 164 | for i in 0..2 { | ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop = note: `#[warn(clippy::needless_range_loop)]` on by default help: consider using an iterator | 164 | for <item> in &swapchain_textures { | ~~~~~~ ~~~~~~~~~~~~~~~~~~~
doc list item without indentation: alvr/client_core/src/c_api.rs#L496
warning: doc list item without indentation --> alvr/client_core/src/c_api.rs:496:5 | 496 | /// 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 | 496 | /// eye_gazes: | ++
doc list item without indentation: alvr/client_core/src/c_api.rs#L493
warning: doc list item without indentation --> alvr/client_core/src/c_api.rs:493:5 | 493 | /// 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 | 493 | /// hand_skeleton: | ++
fields `codec`, `force_software_decoder`, `max_buffering_frames`, `buffering_history_weight`, `options`, and `config_buffer` are never read: alvr/client_core/src/decoder.rs#L7
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
field `codec` is never read: alvr/client_core/src/c_api.rs#L73
warning: field `codec` is never read --> alvr/client_core/src/c_api.rs:73:9 | 72 | DecoderConfig { | ------------- field in this variant 73 | codec: AlvrCodec, | ^^^^^
fields `device_id`, `duration_s`, `frequency`, and `amplitude` are never read: alvr/client_core/src/c_api.rs#L66
warning: fields `device_id`, `duration_s`, `frequency`, and `amplitude` are never read --> alvr/client_core/src/c_api.rs:66:9 | 65 | Haptics { | ------- fields in this variant 66 | device_id: u64, | ^^^^^^^^^ 67 | duration_s: f32, | ^^^^^^^^^^ 68 | frequency: f32, | ^^^^^^^^^ 69 | amplitude: f32, | ^^^^^^^^^
fields `view_width`, `view_height`, `refresh_rate_hint`, and `enable_foveated_encoding` are never read: alvr/client_core/src/c_api.rs#L59
warning: fields `view_width`, `view_height`, `refresh_rate_hint`, and `enable_foveated_encoding` are never read --> alvr/client_core/src/c_api.rs:59:9 | 58 | StreamingStarted { | ---------------- fields in this variant 59 | view_width: u32, | ^^^^^^^^^^ 60 | view_height: u32, | ^^^^^^^^^^^ 61 | refresh_rate_hint: f32, | ^^^^^^^^^^^^^^^^^ 62 | enable_foveated_encoding: bool, | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
this returns a `Result<_, ()>`: alvr/audio/src/linux.rs#L220
warning: this returns a `Result<_, ()>` --> alvr/audio/src/linux.rs:220:1 | 220 | / pub fn record_audio_blocking_pipewire( 221 | | is_running: Arc<dyn Fn() -> bool + Send + Sync>, 222 | | sender: StreamSender<()>, 223 | | channels_count: u16, 224 | | sample_rate: u32, 225 | | ) -> Result<(), ()> { | |___________________^ | = help: use a custom `Error` type instead = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err = note: `#[warn(clippy::result_unit_err)]` on by default
function `build_windows_installer` is never used: alvr/xtask/src/packaging.rs#L13
warning: function `build_windows_installer` is never used --> alvr/xtask/src/packaging.rs:13:4 | 13 | fn build_windows_installer() { | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L413
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:413:25 | 413 | ui[1].label(&format!( | _________________________^ 414 | | "{}% ({})", 415 | | statistics.battery_hmd, 416 | | if statistics.hmd_plugged { ... | 420 | | } 421 | | )); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 413 ~ ui[1].label(format!( 414 + "{}% ({})", 415 + statistics.battery_hmd, 416 + if statistics.hmd_plugged { 417 + "plugged" 418 + } else { 419 + "unplugged" 420 + } 421 ~ )); |
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L410
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:410:25 | 410 | ui[1].label(&format!("{} FPS", statistics.server_fps)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{} FPS", statistics.server_fps)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L407
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:407:25 | 407 | ui[1].label(&format!("{} FPS", statistics.client_fps)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{} FPS", statistics.client_fps)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L401
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:401:25 | 401 | ui[1].label(&format!( | _________________________^ 402 | | "{} packets ({} packets/s)", 403 | | statistics.packets_lost_total, statistics.packets_lost_per_sec 404 | | )); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 401 ~ ui[1].label(format!( 402 + "{} packets ({} packets/s)", 403 + statistics.packets_lost_total, statistics.packets_lost_per_sec 404 ~ )); |
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L398
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:398:25 | 398 | ui[1].label(&format!("{:.2} ms", statistics.decode_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2} ms", statistics.decode_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L395
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:395:25 | 395 | ui[1].label(&format!("{:.2} ms", statistics.network_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2} ms", statistics.network_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L392
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:392:25 | 392 | ui[1].label(&format!("{:.2} ms", statistics.encode_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2} ms", statistics.encode_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L389
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:389:25 | 389 | ui[1].label(&format!("{:.0} ms", statistics.total_latency_ms)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.0} ms", statistics.total_latency_ms)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L386
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:386:25 | 386 | ui[1].label(&format!("{:.1} Mbps", statistics.video_mbits_per_sec)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.1} Mbps", statistics.video_mbits_per_sec)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L383
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:383:25 | 383 | ui[1].label(&format!("{} MB", statistics.video_mbytes_total)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{} MB", statistics.video_mbytes_total)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L377
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:377:25 | 377 | ui[1].label(&format!( | _________________________^ 378 | | "{} packets ({} packets/s)", 379 | | statistics.video_packets_total, statistics.video_packets_per_sec 380 | | )); | |_____________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args help: change this to | 377 ~ ui[1].label(format!( 378 + "{} packets ({} packets/s)", 379 + statistics.video_packets_total, statistics.video_packets_per_sec 380 ~ )); |
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L329
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:329:49 | 329 | ui.colored_label(color, &format!("{text}: {:.2} Mbps", value / 1e6)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{text}: {:.2} Mbps", value / 1e6)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
the borrowed expression implements the required traits: alvr\dashboard\src\dashboard\components\statistics.rs#L171
warning: the borrowed expression implements the required traits --> alvr\dashboard\src\dashboard\components\statistics.rs:171:49 | 171 | ui.colored_label(color, &format!("{:.2}ms", value_s * 1000.0)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("{:.2}ms", value_s * 1000.0)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
function `notice` is never used: alvr\dashboard\src\dashboard\components\settings_controls\notice.rs#L8
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
deref which would be done by auto-deref: alvr\client_openxr\src\lib.rs#L360
warning: deref which would be done by auto-deref --> alvr\client_openxr\src\lib.rs:360:66 | 360 | let new_config = ParsedStreamConfig::new(&*config); | ^^^^^^^^ help: try: `&config` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref = note: `#[warn(clippy::explicit_auto_deref)]` on by default
using `clone` on type `Instance` which implements the `Copy` trait: alvr\client_openxr\src\extra_extensions\mod.rs#L48
warning: using `clone` on type `Instance` which implements the `Copy` trait --> alvr\client_openxr\src\extra_extensions\mod.rs:48:33 | 48 | base_function_ptrs: instance.fp().clone(), | ^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*instance.fp()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy = note: `#[warn(clippy::clone_on_copy)]` on by default
fields `aim_action` and `aim_space` are never read: alvr\client_openxr\src\interaction.rs#L26
warning: fields `aim_action` and `aim_space` are never read --> alvr\client_openxr\src\interaction.rs:26:9 | 22 | pub struct HandInteraction { | --------------- fields in this struct ... 26 | pub aim_action: xr::Action<xr::Posef>, | ^^^^^^^^^^ 27 | pub aim_space: xr::Space, | ^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
variable does not need to be mutable: alvr\client_openxr\src\lib.rs#L204
warning: variable does not need to be mutable --> alvr\client_openxr\src\lib.rs:204:9 | 204 | let mut parsed_stream_config = None::<ParsedStreamConfig>; | ----^^^^^^^^^^^^^^^^^^^^ | | | help: remove this `mut`
variable does not need to be mutable: alvr\client_openxr\src\lib.rs#L203
warning: variable does not need to be mutable --> alvr\client_openxr\src\lib.rs:203:9 | 203 | let mut last_lobby_message = String::new(); | ----^^^^^^^^^^^^^^^^^^ | | | help: remove this `mut` | = note: `#[warn(unused_mut)]` on by default
unused variable: `xr_frame_stream`: alvr\client_openxr\src\lib.rs#L216
warning: unused variable: `xr_frame_stream` --> alvr\client_openxr\src\lib.rs:216:51 | 216 | 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`
unused variable: `xr_frame_waiter`: alvr\client_openxr\src\lib.rs#L216
warning: unused variable: `xr_frame_waiter` --> alvr\client_openxr\src\lib.rs:216:30 | 216 | 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`
unused variable: `xr_session`: alvr\client_openxr\src\lib.rs#L216
warning: unused variable: `xr_session` --> alvr\client_openxr\src\lib.rs:216:14 | 216 | let (xr_session, mut xr_frame_waiter, mut xr_frame_stream) = unsafe { | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_xr_session`
unused variable: `parsed_stream_config`: alvr\client_openxr\src\lib.rs#L204
warning: unused variable: `parsed_stream_config` --> alvr\client_openxr\src\lib.rs:204:13 | 204 | let mut parsed_stream_config = None::<ParsedStreamConfig>; | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parsed_stream_config`
unused variable: `last_lobby_message`: alvr\client_openxr\src\lib.rs#L203
warning: unused variable: `last_lobby_message` --> alvr\client_openxr\src\lib.rs:203:13 | 203 | 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
unreachable definition: alvr\client_openxr\src\lib.rs#L222
warning: unreachable definition --> alvr\client_openxr\src\lib.rs:222:13 | 218 | .create_session(xr_system, &graphics::session_create_info(&graphics_context)) | ------------------------------------------------ any code following this expression is unreachable ... 222 | let xr_context = XrContext { | ^^^^^^^^^^ unreachable definition | note: this expression has type `openxr::opengles::SessionCreateInfo`, which is uninhabited --> alvr\client_openxr\src\lib.rs:218:45 | 218 | .create_session(xr_system, &graphics::session_create_info(&graphics_context)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: `#[warn(unreachable_code)]` on by default
this expression creates a reference which is immediately dereferenced by the compiler: alvr\client_core\src\graphics\stream.rs#L166
warning: this expression creates a reference which is immediately dereferenced by the compiler --> alvr\client_core\src\graphics\stream.rs:166:43 | 166 | super::create_texture(&device, view_resolution, target_format); | ^^^^^^^ help: change this to: `device` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow = note: `#[warn(clippy::needless_borrow)]` on by default
the loop variable `i` is only used to index `swapchain_textures`: alvr\client_core\src\graphics\stream.rs#L164
warning: the loop variable `i` is only used to index `swapchain_textures` --> alvr\client_core\src\graphics\stream.rs:164:22 | 164 | for i in 0..2 { | ^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop = note: `#[warn(clippy::needless_range_loop)]` on by default help: consider using an iterator | 164 | for <item> in &swapchain_textures { | ~~~~~~ ~~~~~~~~~~~~~~~~~~~
doc list item without indentation: alvr\client_core\src\c_api.rs#L496
warning: doc list item without indentation --> alvr\client_core\src\c_api.rs:496:5 | 496 | /// 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 | 496 | /// eye_gazes: | ++
doc list item without indentation: alvr\client_core\src\c_api.rs#L493
warning: doc list item without indentation --> alvr\client_core\src\c_api.rs:493:5 | 493 | /// 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 | 493 | /// hand_skeleton: | ++
fields `adapter` and `dummy_surface` are never read: alvr\client_core\src\graphics\mod.rs#L167
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, | ^^^^^^^^^^^^^
fields `codec`, `force_software_decoder`, `max_buffering_frames`, `buffering_history_weight`, `options`, and `config_buffer` are never read: alvr\client_core\src\decoder.rs#L7
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
field `codec` is never read: alvr\client_core\src\c_api.rs#L73
warning: field `codec` is never read --> alvr\client_core\src\c_api.rs:73:9 | 72 | DecoderConfig { | ------------- field in this variant 73 | codec: AlvrCodec, | ^^^^^
fields `device_id`, `duration_s`, `frequency`, and `amplitude` are never read: alvr\client_core\src\c_api.rs#L66
warning: fields `device_id`, `duration_s`, `frequency`, and `amplitude` are never read --> alvr\client_core\src\c_api.rs:66:9 | 65 | Haptics { | ------- fields in this variant 66 | device_id: u64, | ^^^^^^^^^ 67 | duration_s: f32, | ^^^^^^^^^^ 68 | frequency: f32, | ^^^^^^^^^ 69 | amplitude: f32, | ^^^^^^^^^
fields `view_width`, `view_height`, `refresh_rate_hint`, and `enable_foveated_encoding` are never read: alvr\client_core\src\c_api.rs#L59
warning: fields `view_width`, `view_height`, `refresh_rate_hint`, and `enable_foveated_encoding` are never read --> alvr\client_core\src\c_api.rs:59:9 | 58 | StreamingStarted { | ---------------- fields in this variant 59 | view_width: u32, | ^^^^^^^^^^ 60 | view_height: u32, | ^^^^^^^^^^^ 61 | refresh_rate_hint: f32, | ^^^^^^^^^^^^^^^^^ 62 | enable_foveated_encoding: bool, | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
unused imports: `InstanceDescriptor` and `InstanceFlags`: alvr\client_core\src\graphics\mod.rs#L15
warning: unused imports: `InstanceDescriptor` and `InstanceFlags` --> alvr\client_core\src\graphics\mod.rs:15:42 | 15 | Adapter, Device, Extent3d, Instance, InstanceDescriptor, InstanceFlags, Queue, Texture, | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
unused import: `mem`: alvr\client_core\src\graphics\mod.rs#L12
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
function `build_windows_installer` is never used: alvr\xtask\src\packaging.rs#L13
warning: function `build_windows_installer` is never used --> alvr\xtask\src\packaging.rs:13:4 | 13 | fn build_windows_installer() { | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default