Skip to content

Commit

Permalink
Merge pull request #32 from Bowarc/master
Browse files Browse the repository at this point in the history
Removing Sync trait requirement for generic 'F' in lib::TrayItem::add…
  • Loading branch information
olback authored Oct 18, 2023
2 parents 3c47351 + 41eb9a0 commit 1fc905c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl TrayItem {

pub fn add_menu_item<F>(&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)
}
Expand Down

0 comments on commit 1fc905c

Please sign in to comment.