Make GeglOperation Send + Sync so it can be used with lazy_static.

This commit is contained in:
Bauke 2024-01-28 14:04:08 +01:00
parent a670fb66b3
commit 190527d761
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ pub type GeglData = indexmap::IndexMap<&'static str, String>;
/// The [`GeglOperation`] trait defines a set of common functions for the
/// individual operations to implement so they can be used with the GEGL CLI.
pub trait GeglOperation: std::fmt::Debug {
pub trait GeglOperation: std::fmt::Debug + Send + Sync {
/// Some GEGL operations will run infinitely unless you limit the buffer in
/// some way, so all operations must indicate whether or not they should be
/// followed by a crop operation.