Skip to content

fix(deps): update rust crate winit to 0.30 #6304

fix(deps): update rust crate winit to 0.30

fix(deps): update rust crate winit to 0.30 #6304

Triggered via push July 17, 2024 21:55
Status Failure
Total duration 1h 1m 36s
Artifacts 1

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 47 warnings
no method named `available_monitors` found for struct `winit::event_loop::EventLoop` in the current scope: crates/runtime/wgpu/src/window/event_loop.rs#L90
error[E0599]: no method named `available_monitors` found for struct `winit::event_loop::EventLoop` in the current scope --> crates/runtime/wgpu/src/window/event_loop.rs:90:14 | 89 | / self.event_loop 90 | | .available_monitors() | | -^^^^^^^^^^^^^^^^^^ method not found in `EventLoop<()>` | |_____________| |
failed to resolve: could not find `WindowBuilder` in `window`: crates/runtime/wgpu/src/window/event_loop.rs#L79
error[E0433]: failed to resolve: could not find `WindowBuilder` in `window` --> crates/runtime/wgpu/src/window/event_loop.rs:79:37 | 79 | let window = winit::window::WindowBuilder::new() | ^^^^^^^^^^^^^ could not find `WindowBuilder` in `window`
failed to resolve: could not find `WindowBuilder` in `window`: crates/runtime/wgpu/src/window/event_loop.rs#L43
error[E0433]: failed to resolve: could not find `WindowBuilder` in `window` --> crates/runtime/wgpu/src/window/event_loop.rs:43:37 | 43 | let window = winit::window::WindowBuilder::new() | ^^^^^^^^^^^^^ could not find `WindowBuilder` in `window`
build-linux
Process completed with exit code 2.
build-docker
buildx failed with: ERROR: failed to solve: process "/bin/sh -c make build-headless && make package-headless && cp -rL /build/artifact /app" did not complete successfully: exit code: 2
build-macos
Process completed with exit code 2.
build-windows
Process completed with exit code 1.
build-windows
Process completed with exit code 1.
use of deprecated method `winit::platform::pump_events::EventLoopExtPumpEvents::pump_events`: use EventLoopExtPumpEvents::pump_app_events: crates/runtime/wgpu/src/window/processor.rs#L18
warning: use of deprecated method `winit::platform::pump_events::EventLoopExtPumpEvents::pump_events`: use EventLoopExtPumpEvents::pump_app_events --> crates/runtime/wgpu/src/window/processor.rs:18:14 | 18 | .pump_events(Some(Duration::ZERO), |event, _target| { | ^^^^^^^^^^^
use of deprecated associated function `winit::event_loop::EventLoopBuilder::<()>::new`: use `EventLoop::builder` instead: crates/runtime/wgpu/src/window/event_loop.rs#L26
warning: use of deprecated associated function `winit::event_loop::EventLoopBuilder::<()>::new`: use `EventLoop::builder` instead --> crates/runtime/wgpu/src/window/event_loop.rs:26:45 | 26 | let mut builder = EventLoopBuilder::new(); | ^^^ | = note: `#[warn(deprecated)]` on by default
assigning the result of `Clone::clone()` may be inefficient: crates/components/timecode/src/commands/rename_timecode_control.rs#L26
warning: assigning the result of `Clone::clone()` may be inefficient --> crates/components/timecode/src/commands/rename_timecode_control.rs:26:13 | 26 | control.name = self.name.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `control.name.clone_from(&self.name)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
you should consider adding a `Default` implementation for `UiApi`: crates/components/ui/src/lib.rs#L13
warning: you should consider adding a `Default` implementation for `UiApi` --> crates/components/ui/src/lib.rs:13:5 | 13 | / pub fn new() -> Self { 14 | | Self { 15 | | bus: MessageBus::new(), 16 | | } 17 | | } | |_____^ | = 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 | 12 + impl Default for UiApi { 13 + fn default() -> Self { 14 + Self::new() 15 + } 16 + } |
assigning the result of `Clone::clone()` may be inefficient: crates/components/timecode/src/commands/rename_timecode.rs#L26
warning: assigning the result of `Clone::clone()` may be inefficient --> crates/components/timecode/src/commands/rename_timecode.rs:26:13 | 26 | timecode.name = self.name.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `timecode.name.clone_from(&self.name)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones = note: `#[warn(clippy::assigning_clones)]` on by default
assigning the result of `Clone::clone()` may be inefficient: crates/components/connections/protocols/midi/src/connections.rs#L33
warning: assigning the result of `Clone::clone()` may be inefficient --> crates/components/connections/protocols/midi/src/connections.rs:33:13 | 33 | device.profile = profile.clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `device.profile.clone_from(&profile)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones = note: `#[warn(clippy::assigning_clones)]` on by default
the borrowed expression implements the required traits: crates/components/media/src/thumbnail_generator/video_generator.rs#L82
warning: the borrowed expression implements the required traits --> crates/components/media/src/thumbnail_generator/video_generator.rs:82:20 | 82 | image.save(&target)?; | ^^^^^^^ help: change this to: `target` | = 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
you seem to be trying to use `&Box<T>`. Consider using just `&T`: crates/components/media/src/media_handlers/audio_handler.rs#L72
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T` --> crates/components/media/src/media_handlers/audio_handler.rs:72:34 | 72 | fn get_channel_count(format: &Box<dyn FormatReader>) -> Option<u32> { | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn FormatReader` | = 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/components/media/src/media_handlers/audio_handler.rs#L66
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T` --> crates/components/media/src/media_handlers/audio_handler.rs:66:32 | 66 | fn get_sample_rate(format: &Box<dyn FormatReader>) -> Option<u32> { | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn FormatReader` | = 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/components/media/src/media_handlers/audio_handler.rs#L57
warning: you seem to be trying to use `&Box<T>`. Consider using just `&T` --> crates/components/media/src/media_handlers/audio_handler.rs:57:29 | 57 | fn get_duration(format: &Box<dyn FormatReader>) -> Option<u64> { | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `&dyn FormatReader` | = 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
you should consider adding a `Default` implementation for `TagId`: crates/components/media/src/documents/mod.rs#L62
warning: you should consider adding a `Default` implementation for `TagId` --> crates/components/media/src/documents/mod.rs:62:5 | 62 | / pub fn new() -> Self { 63 | | TagId(uuid::Uuid::new_v4()) 64 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default help: try adding this | 61 + impl Default for TagId { 62 + fn default() -> Self { 63 + Self::new() 64 + } 65 + } |
you should consider adding a `Default` implementation for `MediaId`: crates/components/media/src/documents/mod.rs#L23
warning: you should consider adding a `Default` implementation for `MediaId` --> crates/components/media/src/documents/mod.rs:23:5 | 23 | / pub fn new() -> Self { 24 | | MediaId(uuid::Uuid::new_v4()) 25 | | } | |_____^ | = 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 MediaId { 23 + fn default() -> Self { 24 + Self::new() 25 + } 26 + } |
implementation of inherent method `to_string(&self) -> String` for type `profile::ProfileErrors`: crates/components/connections/protocols/midi/device-profiles/src/profile.rs#L51
warning: implementation of inherent method `to_string(&self) -> String` for type `profile::ProfileErrors` --> crates/components/connections/protocols/midi/device-profiles/src/profile.rs:51:5 | 51 | / pub fn to_string(&self) -> String { 52 | | match self { 53 | | ProfileErrors::PagesLoadingError(err) => format!("Pages loading error: {}", err), 54 | | ProfileErrors::OutputScriptLoadingError(err) => { ... | 61 | | } 62 | | } | |_____^ | = help: implement trait `Display` for type `profile::ProfileErrors` instead = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string = note: `#[warn(clippy::inherent_to_string)]` on by default
all variants have the same postfix: `Error`: crates/components/connections/protocols/midi/device-profiles/src/profile.rs#L43
warning: all variants have the same postfix: `Error` --> crates/components/connections/protocols/midi/device-profiles/src/profile.rs:43:1 | 43 | / pub enum ProfileErrors { 44 | | PagesLoadingError(String), 45 | | OutputScriptLoadingError(String), 46 | | OutputScriptWritingError(String), 47 | | LayoutLoadingError(String), 48 | | } | |_^ | = help: remove the postfixes and use full paths to the variants instead of glob imports = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names = note: `#[warn(clippy::enum_variant_names)]` on by default
field `status_handle` is never read: crates/components/media/src/background_media_job.rs#L10
warning: field `status_handle` is never read --> crates/components/media/src/background_media_job.rs:10:5 | 8 | pub struct BackgroundMediaJob { | ------------------ field in this struct 9 | media_server: MediaServer, 10 | status_handle: StatusHandle, | ^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
you should consider adding a `Default` implementation for `WebcamDiscovery`: crates/components/connections/devices/webcams/src/discovery.rs#L46
warning: you should consider adding a `Default` implementation for `WebcamDiscovery` --> crates/components/connections/devices/webcams/src/discovery.rs:46:5 | 46 | / pub fn new() -> Self { 47 | | let (sender, receiver) = unbounded(); 48 | | 49 | | if !nokhwa_check() { ... | 59 | | Self { cameras: receiver } 60 | | } | |_____^ | = 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 | 45 + impl Default for WebcamDiscovery { 46 + fn default() -> Self { 47 + Self::new() 48 + } 49 + } |
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 | | ... tracing::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
using `clone` on type `Ipv4Addr` which implements the `Copy` trait: crates/components/connections/protocols/dmx/src/commands/add_artnet_input.rs#L29
warning: using `clone` on type `Ipv4Addr` which implements the `Copy` trait --> crates/components/connections/protocols/dmx/src/commands/add_artnet_input.rs:29:38 | 29 | let input = ArtnetInput::new(self.host.clone(), self.port, self.name.clone())?; | ^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.host` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `[u8; 512]` which implements the `Copy` trait: crates/components/connections/protocols/dmx/src/buffer.rs#L29
warning: using `clone` on type `[u8; 512]` which implements the `Copy` trait --> crates/components/connections/protocols/dmx/src/buffer.rs:29:56 | 29 | self.buffers.iter().map(|entry| (*entry.key(), entry.value().clone())) | ^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*entry.value()` | = 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
field `thread` is never read: crates/components/connections/protocols/dmx/src/inputs/artnet.rs#L80
warning: field `thread` is never read --> crates/components/connections/protocols/dmx/src/inputs/artnet.rs:80:5 | 79 | struct ThreadHandle { | ------------ field in this struct 80 | thread: JoinHandle<()>, | ^^^^^^ | = note: `ThreadHandle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default
clamp-like pattern without using clamp function: crates/util/src/conversion.rs#L8
warning: clamp-like pattern without using clamp function --> crates/util/src/conversion.rs:8:9 | 8 | (self * u8::MAX as f64).min(255.).max(0.).floor() as u8 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with clamp: `(self * u8::MAX as f64).clamp(0., 255.)` | = note: clamp will panic if max < min, min.is_nan(), or max.is_nan() = note: clamp returns NaN if the input is NaN = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_clamp = note: `#[warn(clippy::manual_clamp)]` 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
unneeded unit expression: crates/runtime/commander/src/extractors/tuples.rs#L143
warning: unneeded unit expression --> crates/runtime/commander/src/extractors/tuples.rs:143:9 | 143 | () | ^^ help: remove the final `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default
bound is defined in more than one place: crates/runtime/module/src/lib.rs#L97
warning: bound is defined in more than one place --> crates/runtime/module/src/lib.rs:97:24 | 97 | fn block_in_thread<A: 'static, F: Future + 'static>(&self, future_action: A) | ^ 98 | where 99 | A: FnOnce() -> F + Send; | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations = note: `#[warn(clippy::multiple_bound_locations)]` on by default
unneeded unit expression: crates/runtime/debug-ui/src/noop.rs#L34
warning: unneeded unit expression --> crates/runtime/debug-ui/src/noop.rs:34:9 | 34 | () | ^^ help: remove the final `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
unneeded unit expression: crates/runtime/debug-ui/src/noop.rs#L13
warning: unneeded unit expression --> crates/runtime/debug-ui/src/noop.rs:13:9 | 13 | () | ^^ help: remove the final `()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit = note: `#[warn(clippy::unused_unit)]` on by default
field `0` is never read: crates/util/bus/src/lib.rs#L145
warning: field `0` is never read --> crates/util/bus/src/lib.rs:145:37 | 145 | struct SubscriberStream<T: 'static>(Arc<flume::Sender<T>>, RecvStream<'static, T>); | ---------------- ^^^^^^^^^^^^^^^^^^^^^ | | | field in this struct | = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 145 | struct SubscriberStream<T: 'static>((), RecvStream<'static, T>); | ~~
build-linux
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build-linux
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build-linux
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-linux
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-linux
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-linux
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-macos
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build-macos
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build-macos
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-macos
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-macos
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-macos
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-macos
pkg-config 0.29.2_3 is already installed and up-to-date. To reinstall 0.29.2_3, run: brew reinstall pkg-config
build-windows
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build-windows
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build-windows
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-windows
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-windows
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-windows
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-windows
No files were found with the provided path: mizer.zip. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size
android-remote Expired
19.6 MB