Skip to content

chore: update libcosmic with mmap threshold fix #1277

chore: update libcosmic with mmap threshold fix

chore: update libcosmic with mmap threshold fix #1277

Triggered via pull request February 12, 2025 18:42
Status Failure
Total duration 2m 43s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 10 warnings
formatting
Process completed with exit code 1.
struct takes 0 lifetime arguments but 1 lifetime argument was supplied: cosmic-app-list/src/app.rs#L132
error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied --> cosmic-app-list/src/app.rs:132:19 | 132 | desktop_info: DesktopEntry<'static>, | ^^^^^^^^^^^^--------- help: remove these generics | | | expected 0 lifetime arguments | note: struct defined here, with 0 lifetime parameters --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/freedesktop-desktop-entry-0.7.7/src/lib.rs:78:12 | 78 | pub struct DesktopEntry { | ^^^^^^^^^^^^
struct takes 0 lifetime arguments but 1 lifetime argument was supplied: cosmic-app-list/src/app.rs#L559
error[E0107]: struct takes 0 lifetime arguments but 1 lifetime argument was supplied --> cosmic-app-list/src/app.rs:559:77 | 559 | fn load_desktop_entries_from_app_ids<I, L>(ids: &[I], locales: &[L]) -> Vec<DesktopEntry<'static>> | ^^^^^^^^^^^^--------- help: remove these generics | | | expected 0 lifetime arguments | note: struct defined here, with 0 lifetime parameters --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/freedesktop-desktop-entry-0.7.7/src/lib.rs:78:12 | 78 | pub struct DesktopEntry { | ^^^^^^^^^^^^
mismatched types: cosmic-app-list/src/app.rs#L571
error[E0308]: mismatched types --> cosmic-app-list/src/app.rs:571:59 | 571 | .unwrap_or(&fde::DesktopEntry::from_appid(id.as_ref())) | ----------------------------- ^^^^^^^^^^^- help: try using a conversion method: `.to_string()` | | | | | expected `String`, found `&str` | arguments to this function are incorrect | note: associated function defined here --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/freedesktop-desktop-entry-0.7.7/src/lib.rs:102:12 | 102 | pub fn from_appid(appid: String) -> DesktopEntry { | ^^^^^^^^^^
linting
Clippy had exited with the 101 exit code
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 + } |
unused variable: `err`: cosmic-applet-notifications/src/subscriptions/notifications.rs#L107
warning: unused variable: `err` --> cosmic-applet-notifications/src/subscriptions/notifications.rs:107:48 | 107 | ... if let Err(err) = proxy.invoke_action(id, action.clone()).await { | ^^^ help: if this is intentional, prefix it with an underscore: `_err` | = note: `#[warn(unused_variables)]` on by default
variant `OpenSettings` is never constructed: cosmic-applet-notifications/src/lib.rs#L96
warning: variant `OpenSettings` is never constructed --> cosmic-applet-notifications/src/lib.rs:96:5 | 83 | enum Message { | ------- variant in this enum ... 96 | OpenSettings, | ^^^^^^^^^^^^ | = 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
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(()), | ~~
field `0` is never read: cosmic-applet-audio/src/pulse.rs#L454
warning: field `0` is never read --> cosmic-applet-audio/src/pulse.rs:454:16 | 454 | ContextErr(pulse::context::State), | ---------- ^^^^^^^^^^^^^^^^^^^^^ | | | field in this variant | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 454 | ContextErr(()), | ~~
field `0` is never read: cosmic-applet-audio/src/pulse.rs#L455
warning: field `0` is never read --> cosmic-applet-audio/src/pulse.rs:455:18 | 455 | OperationErr(pulse::operation::State), | ------------ ^^^^^^^^^^^^^^^^^^^^^^^ | | | field in this variant | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 455 | OperationErr(()), | ~~
field `0` is never read: cosmic-applet-audio/src/pulse.rs#L456
warning: field `0` is never read --> cosmic-applet-audio/src/pulse.rs:456:11 | 456 | PAErr(PAErr), | ----- ^^^^^ | | | field in this variant | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 456 | PAErr(()), | ~~
field `0` is never read: cosmic-applet-audio/src/pulse.rs#L458
warning: field `0` is never read --> cosmic-applet-audio/src/pulse.rs:458:10 | 458 | Misc(&'a str), | ---- ^^^^^^^ | | | field in this variant | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 458 | Misc(()), | ~~
fields `user_name`, `host_name`, `server_version`, `server_name`, and `cookie` are never read: cosmic-applet-audio/src/pulse.rs#L811
warning: fields `user_name`, `host_name`, `server_version`, `server_name`, and `cookie` are never read --> cosmic-applet-audio/src/pulse.rs:811:9 | 809 | pub struct ServerInfo { | ---------- fields in this struct 810 | /// User name of the daemon process. 811 | pub user_name: Option<String>, | ^^^^^^^^^ 812 | /// Host name the daemon is running on. 813 | pub host_name: Option<String>, | ^^^^^^^^^ 814 | /// Version string of the daemon. 815 | pub server_version: Option<String>, | ^^^^^^^^^^^^^^ 816 | /// Server package name (usually “pulseaudio”). 817 | pub server_name: Option<String>, | ^^^^^^^^^^^ ... 825 | pub cookie: u32, | ^^^^^^ | = note: `ServerInfo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis