Putting back Send + Sync

This commit is contained in:
Nicolas Patry
2023-07-26 10:22:40 +00:00
parent 7c7e6ba201
commit 25a2086e8f
3 changed files with 21 additions and 13 deletions

View File

@ -103,7 +103,7 @@ pub enum Op {
}
/// Unary ops that can be defined in user-land.
pub trait CustomOp1 {
pub trait CustomOp1: Send + Sync {
// Box<dyn> does not support const yet, so use a function to get the name.
fn name(&self) -> &'static str;