mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
50 lines
2.9 KiB
Plaintext
50 lines
2.9 KiB
Plaintext
warning: rog-control-center@6.3.0: warning: padding-bottom only has effect on layout elements
|
|
warning: rog-control-center@6.3.0: --> /mnt/Data/mihais/builds/ROGCC/rog-control-center/ui/widgets/sidebar.slint:122:29
|
|
warning: rog-control-center@6.3.0: |
|
|
warning: rog-control-center@6.3.0: 122 | padding-bottom: 20px;
|
|
warning: rog-control-center@6.3.0: | ^^^^^
|
|
Compiling rog-control-center v6.3.0 (/mnt/Data/mihais/builds/ROGCC/rog-control-center)
|
|
error[E0505]: cannot move out of `handle` because it is borrowed
|
|
--> rog-control-center/src/ui/setup_fans.rs:216:36
|
|
|
|
|
174 | if let Err(e) = handle_copy.upgrade_in_event_loop(move |handle| {
|
|
| ------ binding `handle` declared here
|
|
175 | let global = handle.global::<FanPageData>();
|
|
| ------ borrow of `handle` occurs here
|
|
...
|
|
216 | global.on_set_fan_data(move |fan, profile, enabled, data| {
|
|
| --------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move out of `handle` occurs here
|
|
| |
|
|
| borrow later used by call
|
|
217 | let fans = fans.clone();
|
|
218 | let handle_weak = handle.as_weak();
|
|
| ------ move occurs due to use in closure
|
|
|
|
|
note: if `MainWindow` implemented `Clone`, you could clone the value
|
|
--> /mnt/Data/mihais/builds/ROGCC/target/debug/build/rog-control-center-f28a2c919698f43f/out/main_window.rs:128899:6
|
|
|
|
|
128899 | pub struct r#MainWindow (sp :: VRc < sp :: ItemTreeVTable , InnerMainWindow >) ;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type
|
|
|
|
|
::: rog-control-center/src/ui/setup_fans.rs:175:26
|
|
|
|
|
175 | let global = handle.global::<FanPageData>();
|
|
| ------ you could clone this value
|
|
|
|
warning: unused variable: `ui_weak_copy`
|
|
--> rog-control-center/src/ui/setup_slash.rs:32:17
|
|
|
|
|
32 | let ui_weak_copy = ui_weak.clone();
|
|
| ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ui_weak_copy`
|
|
|
|
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
|
|
|
|
For more information about this error, try `rustc --explain E0505`.
|
|
warning: `rog-control-center` (lib) generated 1 warning
|
|
warning: rog-control-center@6.3.0: warning: padding-bottom only has effect on layout elements
|
|
warning: rog-control-center@6.3.0: --> /mnt/Data/mihais/builds/ROGCC/rog-control-center/ui/widgets/sidebar.slint:122:29
|
|
warning: rog-control-center@6.3.0: |
|
|
warning: rog-control-center@6.3.0: 122 | padding-bottom: 20px;
|
|
warning: rog-control-center@6.3.0: | ^^^^^
|
|
error: could not compile `rog-control-center` (lib) due to 1 previous error; 1 warning emitted
|