From 190527d761b5e94627b8f8727ee55671619ae829 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 28 Jan 2024 14:04:08 +0100 Subject: [PATCH] Make GeglOperation Send + Sync so it can be used with lazy_static. --- gegl/source/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gegl/source/lib.rs b/gegl/source/lib.rs index 9c8301a..2334a75 100644 --- a/gegl/source/lib.rs +++ b/gegl/source/lib.rs @@ -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.