From 4ea7292266e7c49f336a04e29dc6b3a58704909c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 04:36:17 +0000 Subject: [PATCH 1/2] Bump trayicon from 0.1.3 to 0.2.0 Bumps [trayicon](https://github.com/ciantic/trayicon-rs) from 0.1.3 to 0.2.0. - [Commits](https://github.com/ciantic/trayicon-rs/commits) --- updated-dependencies: - dependency-name: trayicon dependency-version: 0.2.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 85b2502..f6e0d22 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -35,9 +35,9 @@ dependencies = [ [[package]] name = "trayicon" -version = "0.1.3" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c367fd7cdcdf19234aa104f7e03abe1be526018e4282af9f275bf436b9c9ad23" +checksum = "c51617694e059fe4b83ab48e435660c1ba5b48b1573b4c143fdabd1c0f279daa" dependencies = [ "winapi", ] diff --git a/Cargo.toml b/Cargo.toml index e2ae8e7..c6c9bb4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -trayicon = "0.1.3" +trayicon = "0.2.0" winreg = "0.55.0" [dependencies.winapi] From bbd1baa918a0c642d266db6b6a16a8566a3e840e Mon Sep 17 00:00:00 2001 From: Bearice Ren Date: Mon, 26 May 2025 13:45:28 +0900 Subject: [PATCH 2/2] fixes compile error --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8d9d5e4..cdf8f54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -93,7 +93,9 @@ fn main() { })); let tray_icon = TrayIconBuilder::new() - .sender(s) + .sender(move |e: &Events| { + let _ = s.send(e.clone()); + }) .icon(icons[icon_id][0].clone()) .tooltip("Nyan~") .menu(build_menu(icon_id))