Skip to content

chore: update libcosmic with mmap threshold fix #1282

chore: update libcosmic with mmap threshold fix

chore: update libcosmic with mmap threshold fix #1282

Triggered via push February 12, 2025 18:51
Status Success
Total duration 3m 1s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
taken reference of right operand: cosmic-app-list/cosmic-app-list-config/src/lib.rs#L45
warning: taken reference of right operand --> cosmic-app-list/cosmic-app-list-config/src/lib.rs:45:63 | 45 | if let Some(pos) = self.favorites.iter().position(|e| e == &id) { | ^^^^^--- | | | help: use the right value directly: `id` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref = note: `#[warn(clippy::op_ref)]` on by default
this `if` statement can be collapsed: cosmic-applet-audio/src/mouse_area.rs#L303
warning: this `if` statement can be collapsed --> cosmic-applet-audio/src/mouse_area.rs:303:9 | 303 | / if !state.is_out_of_bounds { 304 | | if widget 305 | | .on_mouse_enter 306 | | .as_ref() ... | 317 | | } 318 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if = note: `#[warn(clippy::collapsible_if)]` on by default help: collapse nested if block | 303 ~ if !state.is_out_of_bounds && widget 304 + .on_mouse_enter 305 + .as_ref() 306 + .or(widget.on_mouse_exit.as_ref()) 307 + .is_some() { 308 + if let Event::Mouse(mouse::Event::CursorMoved { .. }) = event { 309 + state.is_out_of_bounds = true; 310 + if let Some(message) = widget.on_mouse_exit.as_ref() { 311 + shell.publish(message.clone()); 312 + } 313 + return event::Status::Captured; 314 + } 315 + } |
variants `StartListeningForDnd` and `StopListeningForDnd` are never constructed: cosmic-app-list/src/app.rs#L365
warning: variants `StartListeningForDnd` and `StopListeningForDnd` are never constructed --> cosmic-app-list/src/app.rs:365:5 | 341 | enum Message { | ------- variants in this enum ... 365 | StartListeningForDnd, | ^^^^^^^^^^^^^^^^^^^^ 366 | StopListeningForDnd, | ^^^^^^^^^^^^^^^^^^^ | = note: `Message` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default
this function has too many arguments (9/7): cosmic-app-list/src/app.rs#L139
warning: this function has too many arguments (9/7) --> cosmic-app-list/src/app.rs:139:5 | 139 | / fn as_icon( 140 | | &self, 141 | | applet: &Context, 142 | | rectangle_tracker: Option<&RectangleTracker<DockItemId>>, ... | 148 | | window_id: window::Id, 149 | | ) -> Element<'_, Message> { | |_____________________________^ | = 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
useless conversion to the same type: `u32`: cosmic-app-list/src/app.rs#L253
warning: useless conversion to the same type: `u32` --> cosmic-app-list/src/app.rs:253:57 | 253 | Some(Message::TopLevelListPopup((*id).into(), window_id)) | ^^^^^^^^^^^^ help: consider removing `.into()`: `(*id)` | = 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
useless conversion to the same type: `u32`: cosmic-app-list/src/app.rs#L258
warning: useless conversion to the same type: `u32` --> cosmic-app-list/src/app.rs:258:46 | 258 | .on_right_release(Message::Popup((*id).into(), window_id)) | ^^^^^^^^^^^^ help: consider removing `.into()`: `(*id)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
useless conversion to the same type: `u32`: cosmic-app-list/src/app.rs#L261
warning: useless conversion to the same type: `u32` --> cosmic-app-list/src/app.rs:261:55 | 261 | .unwrap_or_else(|| Message::Popup((*id).into(), window_id)) | ^^^^^^^^^^^^ help: consider removing `.into()`: `(*id)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
casting to the same type is unnecessary (`usize` -> `usize`): cosmic-app-list/src/app.rs#L1270
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> cosmic-app-list/src/app.rs:1270:25 | 1270 | (active_popup_cutoff.unwrap_or_default()).saturating_sub(1) as usize, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(active_popup_cutoff.unwrap_or_default()).saturating_sub(1)` | = 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
casting to the same type is unnecessary (`usize` -> `usize`): cosmic-app-list/src/app.rs#L1326
warning: casting to the same type is unnecessary (`usize` -> `usize`) --> cosmic-app-list/src/app.rs:1326:25 | 1326 | favorite_popup_cutoff.unwrap_or_default().saturating_sub(1) as usize, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `favorite_popup_cutoff.unwrap_or_default().saturating_sub(1)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
field `0` is never read: cosmic-applet-audio/src/pulse.rs#L453
warning: field `0` is never read --> cosmic-applet-audio/src/pulse.rs:453:16 | 453 | IterateErr(IterateResult), | ---------- ^^^^^^^^^^^^^ | | | field in this variant | = 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 | 453 | IterateErr(()), | ~~