You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: field is never read: `active_stream`
--> examples/demo-viz/uvc_camera.rs:41:9
|
41 | pub active_stream: uvc::ActiveStream<'this, ()>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
but if I change it to _active_stream, I now get:
warning: method `with__active_stream` should have a snake case name
--> examples/demo-viz/uvc_camera.rs:41:5
|
41 | _active_stream: uvc::ActiveStream<'this, ()>,
| ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `with_active_stream`
|
= note: `#[warn(non_snake_case)]` on by default
warning: method `borrow__active_stream` should have a snake case name
--> examples/demo-viz/uvc_camera.rs:41:5
|
41 | _active_stream: uvc::ActiveStream<'this, ()>,
| ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `borrow_active_stream`
warning: method `with__active_stream_mut` should have a snake case name
--> examples/demo-viz/uvc_camera.rs:41:5
|
41 | _active_stream: uvc::ActiveStream<'this, ()>,
| ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `with_active_stream_mut`
So I had to end up putting a #[allow(dead_code)] on top of my struct RentalStream, a crude hack.
The text was updated successfully, but these errors were encountered:
For example:
but if I change it to
_active_stream
, I now get:So I had to end up putting a
#[allow(dead_code)]
on top of mystruct RentalStream
, a crude hack.The text was updated successfully, but these errors were encountered: