From: Ian Jackson Date: Mon, 22 Mar 2021 00:04:35 +0000 (+0000) Subject: Sprinkle some Send X-Git-Tag: otter-0.5.0~533 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cdd1cd51b506e92892f028e38b97c547ccef900b;p=otter.git Sprinkle some Send Signed-off-by: Ian Jackson --- diff --git a/src/gamestate.rs b/src/gamestate.rs index 42545976..643047cc 100644 --- a/src/gamestate.rs +++ b/src/gamestate.rs @@ -193,7 +193,7 @@ pub struct PieceSpecLoaded { } #[typetag::serde(tag="type")] -pub trait PieceSpec: Debug + Send + 'static { +pub trait PieceSpec: Debug + Sync + Send + 'static { fn count(&self) -> usize { 1 } fn load(&self, i: usize, gpc: &mut GPiece, ir: &InstanceRef) -> Result;