diff --git a/wayland-cursor/CHANGELOG.md b/wayland-cursor/CHANGELOG.md index 36c84441a4c..f452c716b13 100644 --- a/wayland-cursor/CHANGELOG.md +++ b/wayland-cursor/CHANGELOG.md @@ -2,6 +2,16 @@ ## Unreleased +## 0.31.3 -- 2024-05-30 + +#### Bugfixes +- Add `Send + Sync` bounds to fallback callback + +## 0.31.2 -- 2024-05-30 + +### Additions +- Add `set_fallback` method + ## 0.31.1 -- 2024-01-29 - Dropped `nix` dependency in favor or `rustix` diff --git a/wayland-cursor/Cargo.toml b/wayland-cursor/Cargo.toml index 4b8f099f182..d31ab3f9acf 100644 --- a/wayland-cursor/Cargo.toml +++ b/wayland-cursor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wayland-cursor" -version = "0.31.2" +version = "0.31.3" documentation = "https://docs.rs/wayland-cursor/" repository = "https://github.com/smithay/wayland-rs" authors = ["Elinor Berger "] diff --git a/wayland-cursor/src/lib.rs b/wayland-cursor/src/lib.rs index 3aed060afba..bc1751f8a0b 100644 --- a/wayland-cursor/src/lib.rs +++ b/wayland-cursor/src/lib.rs @@ -86,14 +86,14 @@ pub struct CursorTheme { fallback: Option, } -type FallBackInner = Box Option>>; +type FallBackInner = Box Option> + Send + Sync>; struct FallBack(FallBackInner); impl FallBack { fn new(fallback: F) -> Self where - F: Fn(&str, u32) -> Option> + 'static, + F: Fn(&str, u32) -> Option> + Send + Sync + 'static, { Self(Box::new(fallback)) } @@ -232,7 +232,7 @@ impl CursorTheme { /// ``` pub fn set_fallback(&mut self, fallback: F) where - F: Fn(&str, u32) -> Option> + 'static, + F: Fn(&str, u32) -> Option> + Send + Sync + 'static, { self.fallback = Some(FallBack::new(fallback)) }