From 41eb9a072dc35f1413af1be005cc1d4c9b0cab88 Mon Sep 17 00:00:00 2001 From: Bowarc Date: Sun, 7 May 2023 13:23:58 +0200 Subject: [PATCH] Removing Sync trait requirement for generic 'F' in lib::TrayItem::add_menu_item to be able to compile for windows --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index cd691b6..aa08ba0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -40,7 +40,7 @@ impl TrayItem { pub fn add_menu_item(&mut self, label: &str, cb: F) -> Result<(), TIError> where - F: Fn() + Send + Sync + 'static, + F: Fn() + Send + 'static, { self.0.add_menu_item(label, cb) }