fix(client_core): 🐛 Fix rendering C API #4568
Annotations
10 warnings
alvr/common/src/logging.rs#L217
warning: the borrowed expression implements the required traits
--> alvr\common\src\logging.rs:217:30
|
217 | .set_description(&w.to_string())
| ^^^^^^^^^^^^^^ help: change this to: `w.to_string()`
|
= 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
|
alvr/xtask/src/packaging.rs#L20
warning: function `build_windows_installer` is never used
--> alvr\xtask\src\packaging.rs:20:4
|
20 | fn build_windows_installer() {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
alvr/client_core/src/graphics/mod.rs#L14
warning: unused import: `mem`
--> alvr\client_core\src\graphics\mod.rs:14:24
|
14 | use std::{ffi::c_void, mem, num::NonZeroU32, ptr};
| ^^^
|
= note: `#[warn(unused_imports)]` on by default
|
alvr/client_core/src/graphics/mod.rs#L17
warning: unused imports: `InstanceDescriptor` and `InstanceFlags`
--> alvr\client_core\src\graphics\mod.rs:17:42
|
17 | Adapter, Device, Extent3d, Instance, InstanceDescriptor, InstanceFlags, Queue, Texture,
| ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
|
alvr/client_core/src/c_api.rs#L62
warning: fields `view_width`, `view_height`, `refresh_rate_hint`, `encoding_gamma`, `enable_foveated_encoding`, and `enable_hdr` are never read
--> alvr\client_core\src\c_api.rs:62:9
|
61 | StreamingStarted {
| ---------------- fields in this variant
62 | view_width: u32,
| ^^^^^^^^^^
63 | view_height: u32,
| ^^^^^^^^^^^
64 | refresh_rate_hint: f32,
| ^^^^^^^^^^^^^^^^^
65 | encoding_gamma: f32,
| ^^^^^^^^^^^^^^
66 | enable_foveated_encoding: bool,
| ^^^^^^^^^^^^^^^^^^^^^^^^
67 | enable_hdr: bool,
| ^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
alvr/client_core/src/c_api.rs#L71
warning: fields `device_id`, `duration_s`, `frequency`, and `amplitude` are never read
--> alvr\client_core\src\c_api.rs:71:9
|
70 | Haptics {
| ------- fields in this variant
71 | device_id: u64,
| ^^^^^^^^^
72 | duration_s: f32,
| ^^^^^^^^^^
73 | frequency: f32,
| ^^^^^^^^^
74 | amplitude: f32,
| ^^^^^^^^^
|
alvr/client_core/src/c_api.rs#L78
warning: field `codec` is never read
--> alvr\client_core\src\c_api.rs:78:9
|
77 | DecoderConfig {
| ------------- field in this variant
78 | codec: AlvrCodec,
| ^^^^^
|
alvr/client_core/src/c_api.rs#L902
warning: variants `Float`, `Int32`, `Int64`, and `String` are never constructed
--> alvr\client_core\src\c_api.rs:902:5
|
901 | pub enum AlvrMediacodecPropType {
| ---------------------- variants in this enum
902 | Float,
| ^^^^^
903 | Int32,
| ^^^^^
904 | Int64,
| ^^^^^
905 | String,
| ^^^^^^
|
alvr/client_core/src/graphics/mod.rs#L192
warning: fields `adapter` and `dummy_surface` are never read
--> alvr\client_core\src\graphics\mod.rs:192:5
|
190 | pub struct GraphicsContext {
| --------------- fields in this struct
191 | _instance: Instance,
192 | adapter: Adapter,
| ^^^^^^^
...
199 | dummy_surface: egl::Surface,
| ^^^^^^^^^^^^^
|
alvr/client_core/src/connection.rs#L65
warning: very complex type used. Consider factoring parts into `type` definitions
--> alvr\client_core\src\connection.rs:65:27
|
65 | pub decoder_callback: Mutex<Option<Box<dyn FnMut(Duration, &[u8]) -> bool + Send>>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` on by default
|
This job succeeded
Loading