fix(deps): update rust crate cached to 0.45 (#318) #93
Annotations
185 warnings
variable does not need to be mutable:
src/logger.rs#L23
warning: variable does not need to be mutable
--> src/logger.rs:23:9
|
23 | let mut registry = tracing_subscriber::registry()
| ----^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
unused import: `mizer_api::GamepadRef`:
src/api/handler.rs#L4
warning: unused import: `mizer_api::GamepadRef`
--> src/api/handler.rs:4:5
|
4 | use mizer_api::GamepadRef;
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
usage of an `Arc` that is not `Send` or `Sync`:
crates/ui/src/plugin/channels/programmer.rs#L274
warning: usage of an `Arc` that is not `Send` or `Sync`
--> crates/ui/src/plugin/channels/programmer.rs:274:26
|
274 | let programmer = Arc::new(programmer);
| ^^^^^^^^^^^^^^^^^^^^
|
= note: the trait `Send` is not implemented for `Programmer`
= note: the trait `Sync` is not implemented for `Programmer`
= note: required for `Arc<Programmer>` to implement `Send` and `Sync`
= help: consider using an `Rc` instead or wrapping the inner type with a `Mutex`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
|
usage of an `Arc` that is not `Send` or `Sync`:
crates/ui/src/plugin/channels/nodes.rs#L225
warning: usage of an `Arc` that is not `Send` or `Sync`
--> crates/ui/src/plugin/channels/nodes.rs:225:28
|
225 | let metadata_ref = Arc::new(NodesRef::new(metadata_ref));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the trait `Send` is not implemented for `NodesRef`
= note: the trait `Sync` is not implemented for `NodesRef`
= note: required for `Arc<NodesRef>` to implement `Send` and `Sync`
= help: consider using an `Rc` instead or wrapping the inner type with a `Mutex`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
|
usage of an `Arc` that is not `Send` or `Sync`:
crates/ui/src/plugin/channels/nodes.rs#L193
warning: usage of an `Arc` that is not `Send` or `Sync`
--> crates/ui/src/plugin/channels/nodes.rs:193:27
|
193 | let preview = Arc::new(preview);
| ^^^^^^^^^^^^^^^^^
|
= note: the trait `Send` is not implemented for `NodeHistory`
= note: the trait `Sync` is not implemented for `NodeHistory`
= note: required for `Arc<NodeHistory>` to implement `Send` and `Sync`
= help: consider using an `Rc` instead or wrapping the inner type with a `Mutex`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
|
usage of an `Arc` that is not `Send` or `Sync`:
crates/ui/src/plugin/channels/layouts.rs#L243
warning: usage of an `Arc` that is not `Send` or `Sync`
--> crates/ui/src/plugin/channels/layouts.rs:243:23
|
243 | let layouts = Arc::new(layouts);
| ^^^^^^^^^^^^^^^^^
|
= note: the trait `Send` is not implemented for `LayoutRef`
= note: the trait `Sync` is not implemented for `LayoutRef`
= note: required for `Arc<LayoutRef>` to implement `Send` and `Sync`
= help: consider using an `Rc` instead or wrapping the inner type with a `Mutex`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#arc_with_non_send_sync
= note: `#[warn(clippy::arc_with_non_send_sync)]` on by default
|
use of deprecated associated function `mizer_api::proto::transport::TransportState::from_i32`: Use the TryFrom<i32> implementation instead:
crates/ui/src/plugin/channels/transport.rs#L33
warning: use of deprecated associated function `mizer_api::proto::transport::TransportState::from_i32`: Use the TryFrom<i32> implementation instead
--> crates/ui/src/plugin/channels/transport.rs:33:49
|
33 | let state = TransportState::from_i32(state as i32).unwrap();
| ^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
manual implementation of an assign operation:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.3.0/src/public.rs#L394
warning: manual implementation of an assign operation
--> crates/ui/ffi/src/apis/connections.rs:109:1
|
109 | / bitflags! {
110 | | #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
111 | | #[repr(C)]
112 | | pub struct FFIDpadState: u8 {
... |
117 | | }
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
= note: this warning originates in the macro `__impl_public_bitflags_ops` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
|
manual implementation of an assign operation:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.3.0/src/public.rs#L394
warning: manual implementation of an assign operation
--> crates/ui/ffi/src/apis/connections.rs:109:1
|
109 | / bitflags! {
110 | | #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
111 | | #[repr(C)]
112 | | pub struct FFIDpadState: u8 {
... |
117 | | }
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
= note: this warning originates in the macro `__impl_public_bitflags_ops` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
|
manual implementation of an assign operation:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.3.0/src/public.rs#L230
warning: manual implementation of an assign operation
--> crates/ui/ffi/src/apis/connections.rs:109:1
|
109 | / bitflags! {
110 | | #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
111 | | #[repr(C)]
112 | | pub struct FFIDpadState: u8 {
... |
117 | | }
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
= note: this warning originates in the macro `__impl_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
|
manual implementation of an assign operation:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.3.0/src/public.rs#L226
warning: manual implementation of an assign operation
--> crates/ui/ffi/src/apis/connections.rs:109:1
|
109 | / bitflags! {
110 | | #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
111 | | #[repr(C)]
112 | | pub struct FFIDpadState: u8 {
... |
117 | | }
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
= note: this warning originates in the macro `__impl_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
|
manual implementation of an assign operation:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.3.0/src/public.rs#L222
warning: manual implementation of an assign operation
--> crates/ui/ffi/src/apis/connections.rs:109:1
|
109 | / bitflags! {
110 | | #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
111 | | #[repr(C)]
112 | | pub struct FFIDpadState: u8 {
... |
117 | | }
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
= note: this warning originates in the macro `__impl_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
|
manual implementation of an assign operation:
/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-2.3.0/src/public.rs#L176
warning: manual implementation of an assign operation
--> crates/ui/ffi/src/apis/connections.rs:109:1
|
109 | / bitflags! {
110 | | #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
111 | | #[repr(C)]
112 | | pub struct FFIDpadState: u8 {
... |
117 | | }
118 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
= note: `#[warn(clippy::assign_op_pattern)]` on by default
= note: this warning originates in the macro `__impl_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/transport.rs#L22
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/transport.rs:22:15
|
22 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/transport.rs#L10
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/transport.rs:10:15
|
10 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/timecode.rs#L52
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/timecode.rs:52:15
|
52 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/timecode.rs#L42
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/timecode.rs:42:15
|
42 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/timecode.rs#L28
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/timecode.rs:28:15
|
28 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/timecode.rs#L13
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/timecode.rs:13:15
|
13 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/settings.rs#L54
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/settings.rs:54:15
|
54 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/settings.rs#L38
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/settings.rs:38:15
|
38 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/settings.rs#L22
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/settings.rs:22:15
|
22 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/settings.rs#L13
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/settings.rs:13:15
|
13 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
useless conversion to the same type: `std::option::Option<proto::sequencer::CueTime>`:
crates/api/src/mappings/sequencer.rs#L24
warning: useless conversion to the same type: `std::option::Option<proto::sequencer::CueTime>`
--> crates/api/src/mappings/sequencer.rs:24:23
|
24 | time: cue.trigger_time.map(|time| time.into()).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `cue.trigger_time.map(|time| time.into())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/sequencer.rs#L25
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/sequencer.rs:25:19
|
25 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L300
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:300:15
|
300 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L291
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:291:23
|
291 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L275
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:275:23
|
275 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L227
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:227:15
|
227 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L216
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:216:19
|
216 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L195
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:195:15
|
195 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L174
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:174:15
|
174 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L163
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:163:15
|
163 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L142
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:142:15
|
142 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L109
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:109:19
|
109 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L104
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:104:19
|
104 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L99
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:99:19
|
99 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/programmer.rs#L94
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/programmer.rs:94:19
|
94 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/plans.rs#L43
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/plans.rs:43:23
|
43 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/plans.rs#L29
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/plans.rs:29:23
|
29 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/plans.rs#L17
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/plans.rs:17:23
|
17 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/plans.rs#L46
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/plans.rs:46:15
|
46 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L638
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:638:27
|
638 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L641
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:641:19
|
641 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L625
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:625:27
|
625 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L628
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:628:19
|
628 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L603
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:603:15
|
603 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L584
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:584:15
|
584 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
useless conversion to the same type: `std::iter::FilterMap<std::iter::Cloned<std::slice::Iter<'_, i32>>, fn(i32) -> std::option::Option<proto::media::MediaType>>`:
crates/api/src/mappings/nodes.rs#L568
warning: useless conversion to the same type: `std::iter::FilterMap<std::iter::Cloned<std::slice::Iter<'_, i32>>, fn(i32) -> std::option::Option<proto::media::MediaType>>`
--> crates/api/src/mappings/nodes.rs:568:32
|
568 | content_types: value
| ________________________________^
569 | | .allowed_types()
570 | | .into_iter()
| |________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
help: consider removing `.into_iter()`
|
568 ~ content_types: value
569 + .allowed_types()
|
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L504
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:504:19
|
504 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L492
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:492:19
|
492 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L487
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:487:19
|
487 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L479
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:479:19
|
479 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L471
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:471:19
|
471 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L463
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:463:19
|
463 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L459
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:459:19
|
459 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L445
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:445:19
|
445 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L431
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:431:19
|
431 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L417
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:417:19
|
417 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L392
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:392:15
|
392 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
useless conversion to the same type: `std::option::Option<proto::nodes::NodeConfig>`:
crates/api/src/mappings/nodes.rs#L357
warning: useless conversion to the same type: `std::option::Option<proto::nodes::NodeConfig>`
--> crates/api/src/mappings/nodes.rs:357:21
|
357 | config: descriptor.config.try_into().ok().into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `descriptor.config.try_into().ok()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L138
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:138:15
|
138 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L124
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:124:15
|
124 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/nodes.rs#L36
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/nodes.rs:36:15
|
36 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/media.rs#L40
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/media.rs:40:27
|
40 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
useless conversion to the same type: `std::option::Option<proto::media::media_metadata::Dimensions>`:
crates/api/src/mappings/media.rs#L34
warning: useless conversion to the same type: `std::option::Option<proto::media::media_metadata::Dimensions>`
--> crates/api/src/mappings/media.rs:34:29
|
34 | dimensions: media
| _____________________________^
35 | | .metadata
36 | | .dimensions
37 | | .map(|(width, height)| media_metadata::Dimensions {
... |
41 | | })
42 | | .into(),
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
help: consider removing `.into()`
|
34 ~ dimensions: media
35 + .metadata
36 + .dimensions
37 + .map(|(width, height)| media_metadata::Dimensions {
38 + width,
39 + height,
40 + ..Default::default()
41 ~ }),
|
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/media.rs#L47
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/media.rs:47:19
|
47 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/media.rs#L17
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/media.rs:17:15
|
17 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
useless conversion to the same type: `std::option::Option<proto::layouts::Color>`:
crates/api/src/mappings/layouts.rs#L92
warning: useless conversion to the same type: `std::option::Option<proto::layouts::Color>`
--> crates/api/src/mappings/layouts.rs:92:20
|
92 | color: decorations.color.map(Color::from).into(),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `decorations.color.map(Color::from)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L303
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:303:23
|
303 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L305
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:305:19
|
305 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L297
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:297:19
|
297 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L287
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:287:15
|
287 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L251
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:251:15
|
251 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L240
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:240:15
|
240 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L223
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:223:27
|
223 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L226
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:226:19
|
226 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L208
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:208:23
|
208 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L210
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:210:19
|
210 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L195
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:195:23
|
195 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L197
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:197:19
|
197 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L178
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:178:23
|
178 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L180
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:180:19
|
180 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L156
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:156:19
|
156 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L146
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:146:19
|
146 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/fixtures.rs#L22
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/fixtures.rs:22:15
|
22 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/effects.rs#L69
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/effects.rs:69:19
|
69 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/effects.rs#L61
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/effects.rs:61:23
|
61 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/effects.rs#L48
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/effects.rs:48:15
|
48 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/effects.rs#L25
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/effects.rs:25:15
|
25 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/effects.rs#L15
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/effects.rs:15:15
|
15 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L263
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:263:23
|
263 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L254
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:254:19
|
254 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L248
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:248:19
|
248 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L242
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:242:19
|
242 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L229
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:229:15
|
229 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L222
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:222:19
|
222 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L187
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:187:15
|
187 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L177
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:177:15
|
177 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L165
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:165:15
|
165 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L151
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:151:15
|
151 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L132
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:132:15
|
132 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L99
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:99:15
|
99 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/mappings/connections.rs#L8
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/mappings/connections.rs:8:15
|
8 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/timecode.rs#L37
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/timecode.rs:37:15
|
37 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/session.rs#L94
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/session.rs:94:23
|
94 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/session.rs#L87
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/session.rs:87:27
|
87 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/sequencer.rs#L26
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/sequencer.rs:26:15
|
26 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/programmer.rs#L170
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/programmer.rs:170:15
|
170 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/programmer.rs#L140
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/programmer.rs:140:15
|
140 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/plans.rs#L32
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/plans.rs:32:15
|
32 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/nodes.rs#L120
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/nodes.rs:120:15
|
120 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/nodes.rs#L113
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/nodes.rs:113:23
|
113 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/nodes.rs#L69
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/nodes.rs:69:19
|
69 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/media.rs#L33
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/media.rs:33:15
|
33 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/layouts.rs#L30
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/layouts.rs:30:15
|
30 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/fixtures.rs#L91
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/fixtures.rs:91:15
|
91 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/effects.rs#L29
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/effects.rs:29:15
|
29 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/connections.rs#L148
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/connections.rs:148:15
|
148 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
|
struct update has no effect, all the fields in the struct have already been specified:
crates/api/src/handlers/connections.rs#L34
warning: struct update has no effect, all the fields in the struct have already been specified
--> crates/api/src/handlers/connections.rs:34:15
|
34 | ..Default::default()
| ^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_update
= note: `#[warn(clippy::needless_update)]` on by default
|
method `is_empty` is never used:
crates/runtime/commander/executor/src/history.rs#L85
warning: method `is_empty` is never used
--> crates/runtime/commander/executor/src/history.rs:85:12
|
77 | impl<T> CommandCursor<T> {
| ------------------------ method in this implementation
...
85 | pub fn is_empty(&self) -> bool {
| ^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`:
crates/runtime/src/commands/update_node_setting.rs#L63
warning: this `.into_iter()` call is equivalent to `.iter()` and will not consume the `Vec`
--> crates/runtime/src/commands/update_node_setting.rs:63:26
|
63 | .into_iter()
| ^^^^^^^^^ help: call directly: `iter`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_ref
= note: `#[warn(clippy::into_iter_on_ref)]` on by default
|
you seem to be trying to use `&Box<T>`. Consider using just `&T`:
crates/runtime/pipeline/src/worker.rs#L497
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> crates/runtime/pipeline/src/worker.rs:497:33
|
497 | nodes: &Vec<(&NodePath, &Box<dyn ProcessingNodeExt>)>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn ProcessingNodeExt`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
|
you seem to be trying to use `&Box<T>`. Consider using just `&T`:
crates/runtime/pipeline/src/worker.rs#L447
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> crates/runtime/pipeline/src/worker.rs:447:37
|
447 | nodes: &mut Vec<(&NodePath, &Box<dyn ProcessingNodeExt>)>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn ProcessingNodeExt`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
|
you seem to be trying to use `&Box<T>`. Consider using just `&T`:
crates/runtime/pipeline/src/worker.rs#L426
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> crates/runtime/pipeline/src/worker.rs:426:37
|
426 | nodes: &mut Vec<(&NodePath, &Box<dyn ProcessingNodeExt>)>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn ProcessingNodeExt`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
|
you seem to be trying to use `&Box<T>`. Consider using just `&T`:
crates/runtime/pipeline/src/worker.rs#L405
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> crates/runtime/pipeline/src/worker.rs:405:37
|
405 | nodes: &mut Vec<(&NodePath, &Box<dyn ProcessingNodeExt>)>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn ProcessingNodeExt`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
|
writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do:
crates/runtime/pipeline/src/worker.rs#L386
warning: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do
--> crates/runtime/pipeline/src/worker.rs:386:16
|
386 | nodes: &mut Vec<(&NodePath, &Box<dyn ProcessingNodeExt>)>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `&mut [(&NodePath, &Box<dyn ProcessingNodeExt>)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
= note: `#[warn(clippy::ptr_arg)]` on by default
|
you seem to be trying to use `&Box<T>`. Consider using just `&T`:
crates/runtime/pipeline/src/worker.rs#L386
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> crates/runtime/pipeline/src/worker.rs:386:37
|
386 | nodes: &mut Vec<(&NodePath, &Box<dyn ProcessingNodeExt>)>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn ProcessingNodeExt`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
|
you seem to be trying to use `&Box<T>`. Consider using just `&T`:
crates/runtime/pipeline/src/worker.rs#L365
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> crates/runtime/pipeline/src/worker.rs:365:61
|
365 | fn check_node_receivers(&mut self, nodes: &[(&NodePath, &Box<dyn ProcessingNodeExt>)]) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn ProcessingNodeExt`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
|
you seem to be trying to use `&Box<T>`. Consider using just `&T`:
crates/runtime/pipeline/src/worker.rs#L354
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> crates/runtime/pipeline/src/worker.rs:354:39
|
354 | mut nodes: Vec<(&'a NodePath, &'a Box<dyn ProcessingNodeExt>)>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'a dyn ProcessingNodeExt`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
|
you seem to be trying to use `&Box<T>`. Consider using just `&T`:
crates/runtime/pipeline/src/worker.rs#L341
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> crates/runtime/pipeline/src/worker.rs:341:39
|
341 | mut nodes: Vec<(&'a NodePath, &'a Box<dyn ProcessingNodeExt>)>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'a dyn ProcessingNodeExt`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
|
you seem to be trying to use `&Box<T>`. Consider using just `&T`:
crates/runtime/pipeline/src/worker.rs#L328
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T`
--> crates/runtime/pipeline/src/worker.rs:328:39
|
328 | mut nodes: Vec<(&'a NodePath, &'a Box<dyn ProcessingNodeExt>)>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&'a dyn ProcessingNodeExt`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrowed_box
= note: `#[warn(clippy::borrowed_box)]` on by default
|
large size difference between variants:
crates/runtime/pipeline/src/context.rs#L51
warning: large size difference between variants
--> crates/runtime/pipeline/src/context.rs:51:1
|
51 | / pub enum NodePreviewState {
52 | |/ History(
53 | || ConstGenericRingBuffer<f64, HISTORY_PREVIEW_SIZE>,
54 | || Arc<NonEmptyPinboard<Vec<f64>>>,
55 | || ),
| ||_____- the largest variant contains at least 1048 bytes
56 | | Data(Arc<NonEmptyPinboard<Option<StructuredData>>>),
57 | | Color(Arc<NonEmptyPinboard<Option<Color>>>),
| | ------------------------------------------- the second-largest variant contains at least 8 bytes
58 | | None,
59 | | }
| |__^ the entire enum is at least 0 bytes
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
= note: `#[warn(clippy::large_enum_variant)]` on by default
help: consider boxing the large fields to reduce the total size of the enum
|
53 | Box<ConstGenericRingBuffer<f64, HISTORY_PREVIEW_SIZE>>,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
field `reverse` is never read:
crates/runtime/pipeline/nodes/behaviors/oscillator/src/lib.rs#L143
warning: field `reverse` is never read
--> crates/runtime/pipeline/nodes/behaviors/oscillator/src/lib.rs:143:9
|
137 | struct OscillatorContext {
| ----------------- field in this struct
...
143 | pub reverse: bool,
| ^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
field `from` is never read:
crates/runtime/pipeline/nodes/behaviors/envelope/src/lib.rs#L176
warning: field `from` is never read
--> crates/runtime/pipeline/nodes/behaviors/envelope/src/lib.rs:176:13
|
176 | Decay { from: f64, to: f64 },
| ----- ^^^^
| |
| field in this variant
|
field `from` is never read:
crates/runtime/pipeline/nodes/behaviors/envelope/src/lib.rs#L175
warning: field `from` is never read
--> crates/runtime/pipeline/nodes/behaviors/envelope/src/lib.rs:175:14
|
175 | Attack { from: f64, to: f64 },
| ------ ^^^^
| |
| field in this variant
|
= note: `#[warn(dead_code)]` on by default
|
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
crates/runtime/pipeline/nodes/behaviors/color/src/constant.rs#L198
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> crates/runtime/pipeline/nodes/behaviors/color/src/constant.rs:198:1
|
198 | impl Into<u8> for ConstantColorNode {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
= note: `#[warn(clippy::from_over_into)]` on by default
help: replace the `Into` implementation with `From<constant::ConstantColorNode>`
|
198 ~ impl From<ConstantColorNode> for u8 {
199 ~ fn from(val: ConstantColorNode) -> Self {
200 ~ match val {
201 ~ ConstantColorNode::Rgb { .. } => 0,
202 ~ ConstantColorNode::Hsv { .. } => 1,
|
|
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
crates/runtime/pipeline/nodes/connections/protocols/midi/src/output.rs#L345
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> crates/runtime/pipeline/nodes/connections/protocols/midi/src/output.rs:345:1
|
345 | impl Into<u8> for MidiOutputConfig {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
help: replace the `Into` implementation with `From<output::MidiOutputConfig>`
|
345 ~ impl From<MidiOutputConfig> for u8 {
346 ~ fn from(val: MidiOutputConfig) -> Self {
347 ~ match val {
348 ~ MidiOutputConfig::Note { .. } => 0,
349 ~ MidiOutputConfig::Control { .. } => 1,
|
|
an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true:
crates/runtime/pipeline/nodes/connections/protocols/midi/src/input.rs#L300
warning: an implementation of `From` is preferred since it gives you `Into<_>` for free where the reverse isn't true
--> crates/runtime/pipeline/nodes/connections/protocols/midi/src/input.rs:300:1
|
300 | impl Into<u8> for MidiInputConfig {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: `impl From<Local> for Foreign` is allowed by the orphan rules, for more information see
https://doc.rust-lang.org/reference/items/implementations.html#trait-implementation-coherence
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#from_over_into
= note: `#[warn(clippy::from_over_into)]` on by default
help: replace the `Into` implementation with `From<input::MidiInputConfig>`
|
300 ~ impl From<MidiInputConfig> for u8 {
301 ~ fn from(val: MidiInputConfig) -> Self {
302 ~ match val {
303 ~ MidiInputConfig::Note { .. } => 0,
304 ~ MidiInputConfig::Control { .. } => 1,
|
|
function `webcam_to_node_setting` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L134
warning: function `webcam_to_node_setting` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:134:4
|
134 | fn webcam_to_node_setting(value: WebcamSettingValue, setting: &'static str) -> NodeSetting {
| ^^^^^^^^^^^^^^^^^^^^^^
|
function `collect_webcam_settings` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L71
warning: function `collect_webcam_settings` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:71:4
|
71 | fn collect_webcam_settings(webcam_ref: Option<&WebcamRef>) -> Vec<NodeSetting> {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
constant `FOCUS_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L31
warning: constant `FOCUS_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:31:7
|
31 | const FOCUS_SETTING: &str = "Focus";
| ^^^^^^^^^^^^^
|
constant `IRIS_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L30
warning: constant `IRIS_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:30:7
|
30 | const IRIS_SETTING: &str = "Iris";
| ^^^^^^^^^^^^
|
constant `EXPORURE_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L29
warning: constant `EXPORURE_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:29:7
|
29 | const EXPORURE_SETTING: &str = "Exposure";
| ^^^^^^^^^^^^^^^^
|
constant `ZOOM_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L28
warning: constant `ZOOM_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:28:7
|
28 | const ZOOM_SETTING: &str = "Zoom";
| ^^^^^^^^^^^^
|
constant `TILT_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L27
warning: constant `TILT_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:27:7
|
27 | const TILT_SETTING: &str = "Tilt";
| ^^^^^^^^^^^^
|
constant `PAN_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L26
warning: constant `PAN_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:26:7
|
26 | const PAN_SETTING: &str = "Pan";
| ^^^^^^^^^^^
|
constant `GAIN_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L25
warning: constant `GAIN_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:25:7
|
25 | const GAIN_SETTING: &str = "Gain";
| ^^^^^^^^^^^^
|
constant `BACKLIGHT_COMPENSATION_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L24
warning: constant `BACKLIGHT_COMPENSATION_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:24:7
|
24 | const BACKLIGHT_COMPENSATION_SETTING: &str = "Backlight Compensation";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
constant `WHITE_BALANCE_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L23
warning: constant `WHITE_BALANCE_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:23:7
|
23 | const WHITE_BALANCE_SETTING: &str = "White Balance";
| ^^^^^^^^^^^^^^^^^^^^^
|
constant `GAMMA_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L22
warning: constant `GAMMA_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:22:7
|
22 | const GAMMA_SETTING: &str = "Gamma";
| ^^^^^^^^^^^^^
|
constant `SHARPNESS_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L21
warning: constant `SHARPNESS_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:21:7
|
21 | const SHARPNESS_SETTING: &str = "Sharpness";
| ^^^^^^^^^^^^^^^^^
|
constant `SATURATION_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L20
warning: constant `SATURATION_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:20:7
|
20 | const SATURATION_SETTING: &str = "Saturation";
| ^^^^^^^^^^^^^^^^^^
|
constant `HUE_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L19
warning: constant `HUE_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:19:7
|
19 | const HUE_SETTING: &str = "Hue";
| ^^^^^^^^^^^
|
constant `CONTRAST_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L18
warning: constant `CONTRAST_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:18:7
|
18 | const CONTRAST_SETTING: &str = "Contrast";
| ^^^^^^^^^^^^^^^^
|
constant `BRIGHTNESS_SETTING` is never used:
crates/runtime/pipeline/nodes/video/webcams/src/lib.rs#L17
warning: constant `BRIGHTNESS_SETTING` is never used
--> crates/runtime/pipeline/nodes/video/webcams/src/lib.rs:17:7
|
17 | const BRIGHTNESS_SETTING: &str = "Brightness";
| ^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
casting integer literal to `u32` is unnecessary:
crates/runtime/pipeline/nodes/video/src/mixer/wgpu_pipeline.rs#L119
warning: casting integer literal to `u32` is unnecessary
--> crates/runtime/pipeline/nodes/video/src/mixer/wgpu_pipeline.rs:119:28
|
119 | contents: &(0 as u32).to_ne_bytes(),
| ^^^^^^^^^^ help: try: `0_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting integer literal to `u32` is unnecessary:
crates/runtime/pipeline/nodes/video/src/mixer/wgpu_pipeline.rs#L85
warning: casting integer literal to `u32` is unnecessary
--> crates/runtime/pipeline/nodes/video/src/mixer/wgpu_pipeline.rs:85:32
|
85 | contents: &(1 as u32).to_ne_bytes(),
| ^^^^^^^^^^ help: try: `1_u32`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
associated items `new` and `iter` are never used:
crates/runtime/pipeline/nodes/pixels/src/pattern/mod.rs#L179
warning: associated items `new` and `iter` are never used
--> crates/runtime/pipeline/nodes/pixels/src/pattern/mod.rs:179:12
|
178 | impl<'a> PixelGrid<'a> {
| ---------------------- associated items in this implementation
179 | pub fn new(pixels: &'a mut [(f64, f64, f64)], (width, height): (usize, usize)) -> Self {
| ^^^
...
203 | pub fn iter(&self) -> impl Iterator<Item = &(f64, f64, f64)> {
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
|
very complex type used. Consider factoring parts into `type` definitions:
crates/runtime/pipeline/nodes/audio/src/file.rs#L240
warning: very complex type used. Consider factoring parts into `type` definitions
--> crates/runtime/pipeline/nodes/audio/src/file.rs:240:10
|
240 | ) -> anyhow::Result<(Arc<Mutex<Vec<f64>>>, JoinHandle<anyhow::Result<()>>)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
fields `device` and `stream` are never read:
crates/runtime/pipeline/nodes/audio/src/output.rs#L58
warning: fields `device` and `stream` are never read
--> crates/runtime/pipeline/nodes/audio/src/output.rs:58:5
|
56 | pub struct AudioOutputNodeState {
| -------------------- fields in this struct
57 | buffer: SpscRb<f32>,
58 | device: Device,
| ^^^^^^
59 | stream: Stream,
| ^^^^^^
|
fields `device` and `stream` are never read:
crates/runtime/pipeline/nodes/audio/src/input.rs#L58
warning: fields `device` and `stream` are never read
--> crates/runtime/pipeline/nodes/audio/src/input.rs:58:5
|
56 | pub struct AudioInputNodeState {
| ------------------- fields in this struct
57 | buffer: SpscRb<f32>,
58 | device: Device,
| ^^^^^^
59 | stream: Stream,
| ^^^^^^
|
field `thread_handle` is never read:
crates/runtime/pipeline/nodes/audio/src/file.rs#L192
warning: field `thread_handle` is never read
--> crates/runtime/pipeline/nodes/audio/src/file.rs:192:5
|
190 | pub struct AudioFileDecodeState {
| -------------------- field in this struct
191 | path: PathBuf,
192 | thread_handle: JoinHandle<anyhow::Result<()>>,
| ^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
you should consider adding a `Default` implementation for `ImageId`:
crates/components/plan/src/lib.rs#L110
warning: you should consider adding a `Default` implementation for `ImageId`
--> crates/components/plan/src/lib.rs:110:5
|
110 | / pub fn new() -> Self {
111 | | Self(Uuid::new_v4())
112 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
109 + impl Default for ImageId {
110 + fn default() -> Self {
111 + Self::new()
112 + }
113 + }
|
|
field `start_time` is never read:
crates/components/sequencer/src/state.rs#L147
warning: field `start_time` is never read
--> crates/components/sequencer/src/state.rs:147:9
|
146 | pub(crate) struct CueChannel {
| ---------- field in this struct
147 | pub start_time: SequenceTimestamp,
| ^^^^^^^^^^
|
= note: `CueChannel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
|
method `has_passed` is never used:
crates/components/sequencer/src/state.rs#L118
warning: method `has_passed` is never used
--> crates/components/sequencer/src/state.rs:118:19
|
117 | impl SequenceTimestamp {
| ---------------------- method in this implementation
118 | pub(crate) fn has_passed(
| ^^^^^^^^^^
|
associated function `new` is never used:
crates/components/sequencer/src/cue.rs#L293
warning: associated function `new` is never used
--> crates/components/sequencer/src/cue.rs:293:19
|
292 | impl CueControl {
| --------------- associated function in this implementation
293 | pub(crate) fn new(
| ^^^
|
associated function `new` is never used:
crates/components/sequencer/src/cue.rs#L46
warning: associated function `new` is never used
--> crates/components/sequencer/src/cue.rs:46:19
|
45 | impl Cue {
| -------- associated function in this implementation
46 | pub(crate) fn new(id: u32, name: impl Into<String>, controls: Vec<CueControl>) -> Self {
| ^^^
|
= note: `#[warn(dead_code)]` on by default
|
the borrowed expression implements the required traits:
crates/components/media/src/media_handlers/video_handler.rs#L165
warning: the borrowed expression implements the required traits
--> crates/components/media/src/media_handlers/video_handler.rs:165:20
|
165 | image.save(&target)?;
| ^^^^^^^ help: change this to: `target`
|
= 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
|
you should consider adding a `Default` implementation for `MediaId`:
crates/components/media/src/documents/mod.rs#L21
warning: you should consider adding a `Default` implementation for `MediaId`
--> crates/components/media/src/documents/mod.rs:21:5
|
21 | / pub fn new() -> Self {
22 | | MediaId(uuid::Uuid::new_v4())
23 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
20 + impl Default for MediaId {
21 + fn default() -> Self {
22 + Self::new()
23 + }
24 + }
|
|
associated function `transcode_command` is never used:
crates/components/media/src/media_handlers/video_handler.rs#L44
warning: associated function `transcode_command` is never used
--> crates/components/media/src/media_handlers/video_handler.rs:44:8
|
14 | impl VideoHandler {
| ----------------- associated function in this implementation
...
44 | fn transcode_command<I: AsRef<OsStr>, O: AsRef<OsStr>>(
| ^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
you should consider adding a `Default` implementation for `WebcamDiscovery`:
crates/components/connections/devices/webcams/src/discovery.rs#L41
warning: you should consider adding a `Default` implementation for `WebcamDiscovery`
--> crates/components/connections/devices/webcams/src/discovery.rs:41:5
|
41 | / pub fn new() -> Self {
42 | | let (sender, receiver) = unbounded();
43 | |
44 | | if !nokhwa_check() {
... |
54 | | Self { cameras: receiver }
55 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
40 + impl Default for WebcamDiscovery {
41 + fn default() -> Self {
42 + Self::new()
43 + }
44 + }
|
|
this `if let` can be collapsed into the outer `if let`:
crates/components/connections/protocols/pro-dj-link/src/discovery.rs#L85
warning: this `if let` can be collapsed into the outer `if let`
--> crates/components/connections/protocols/pro-dj-link/src/discovery.rs:85:29
|
85 | / ... if let ProDJLinkDevice::CDJ(cdj) = device {
86 | | ... cdj.speed = packet.speed;
87 | | ... cdj.beat = packet.beat;
88 | | ... if let Err(err) = sender.send(ProDJLinkDevice::CDJ(cdj.clone())) {
89 | | ... log::error!("Failed to send CDJ device: {err:?}");
90 | | ... }
91 | | ... }
| |_______________________^
|
help: the outer pattern can be modified to include the inner pattern
--> crates/components/connections/protocols/pro-dj-link/src/discovery.rs:84:37
|
84 | if let Some(device) = devices.get_mut(&packet.device_id) {
| ^^^^^^ replace this binding
85 | if let ProDJLinkDevice::CDJ(cdj) = device {
| ^^^^^^^^^^^^^^^^^^^^^^^^^ with this pattern
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
= note: `#[warn(clippy::collapsible_match)]` on by default
|
this function has too many arguments (9/7):
crates/components/fixtures/src/manager.rs#L46
warning: this function has too many arguments (9/7)
--> crates/components/fixtures/src/manager.rs:46:5
|
46 | / pub fn add_fixture(
47 | | &self,
48 | | fixture_id: u32,
49 | | name: String,
... |
55 | | configuration: FixtureConfiguration,
56 | | ) {
| |______^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this function has too many arguments (8/7):
crates/components/fixtures/src/fixture.rs#L51
warning: this function has too many arguments (8/7)
--> crates/components/fixtures/src/fixture.rs:51:5
|
51 | / pub fn new(
52 | | fixture_id: u32,
53 | | name: String,
54 | | definition: FixtureDefinition,
... |
59 | | configuration: FixtureConfiguration,
60 | | ) -> Self {
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
unused variable: `amber`:
crates/components/fixtures/src/color_mixer.rs#L134
warning: unused variable: `amber`
--> crates/components/fixtures/src/color_mixer.rs:134:13
|
134 | amber,
| ^^^^^ help: try ignoring the field: `amber: _`
|
= note: `#[warn(unused_variables)]` on by default
|
very complex type used. Consider factoring parts into `type` definitions:
crates/runtime/commander/src/extractors/sub_command.rs#L11
warning: very complex type used. Consider factoring parts into `type` definitions
--> crates/runtime/commander/src/extractors/sub_command.rs:11:39
|
11 | pub fn apply(self, command: T) -> anyhow::Result<(T::Result, (T, T::State))> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
|
useless conversion to the same type: `std::string::String`:
crates/runtime/pipeline/node/src/settings.rs#L283
warning: useless conversion to the same type: `std::string::String`
--> crates/runtime/pipeline/node/src/settings.rs:283:20
|
283 | value: value.into(),
| ^^^^^^^^^^^^ help: consider removing `.into()`: `value`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
unused variable: `state`:
crates/runtime/pipeline/node/src/lib.rs#L103
warning: unused variable: `state`
--> crates/runtime/pipeline/node/src/lib.rs:103:9
|
103 | state: &mut Self::State,
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
|
unused variable: `context`:
crates/runtime/pipeline/node/src/lib.rs#L102
warning: unused variable: `context`
--> crates/runtime/pipeline/node/src/lib.rs:102:9
|
102 | context: &impl NodeContext,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context`
|
unused variable: `state`:
crates/runtime/pipeline/node/src/lib.rs#L93
warning: unused variable: `state`
--> crates/runtime/pipeline/node/src/lib.rs:93:9
|
93 | state: &mut Self::State,
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
|
unused variable: `context`:
crates/runtime/pipeline/node/src/lib.rs#L92
warning: unused variable: `context`
--> crates/runtime/pipeline/node/src/lib.rs:92:9
|
92 | context: &impl NodeContext,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context`
|
= note: `#[warn(unused_variables)]` on by default
|
lint `clippy::derive_hash_xor_eq` has been renamed to `clippy::derived_hash_with_manual_eq`:
crates/runtime/pipeline/node/src/settings.rs#L203
warning: lint `clippy::derive_hash_xor_eq` has been renamed to `clippy::derived_hash_with_manual_eq`
--> crates/runtime/pipeline/node/src/settings.rs:203:9
|
203 | #[allow(clippy::derive_hash_xor_eq)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `clippy::derived_hash_with_manual_eq`
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
|
you should consider adding a `Default` implementation for `EventLoopHandle`:
crates/runtime/wgpu/src/window/event_loop.rs#L23
warning: you should consider adding a `Default` implementation for `EventLoopHandle`
--> crates/runtime/wgpu/src/window/event_loop.rs:23:5
|
23 | / pub fn new() -> Self {
24 | | let mut builder = EventLoopBuilder::new();
25 | | #[cfg(target_os = "linux")]
26 | | builder.with_any_thread(true);
... |
32 | | }
33 | | }
| |_____^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
= note: `#[warn(clippy::new_without_default)]` on by default
help: try adding this
|
22 + impl Default for EventLoopHandle {
23 + fn default() -> Self {
24 + Self::new()
25 + }
26 + }
|
|
returning the result of a `let` binding from a block:
crates/runtime/wgpu/src/context.rs#L70
warning: returning the result of a `let` binding from a block
--> crates/runtime/wgpu/src/context.rs:70:9
|
59 | / let texture = self.device.create_texture(&wgpu::TextureDescriptor {
60 | | label,
61 | | size,
62 | | mip_level_count: 1,
... |
67 | | view_formats: &[format],
68 | | });
| |___________- unnecessary `let` binding
69 |
70 | texture
| ^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
= note: `#[warn(clippy::let_and_return)]` on by default
help: return the expression directly
|
59 ~
60 |
61 ~ self.device.create_texture(&wgpu::TextureDescriptor {
62 + label,
63 + size,
64 + mip_level_count: 1,
65 + sample_count: 1,
66 + dimension: wgpu::TextureDimension::D2,
67 + format,
68 + usage,
69 + view_formats: &[format],
70 + })
|
|