From: Ian Jackson Date: Sun, 14 Mar 2021 16:59:06 +0000 (+0000) Subject: at: Generalise PuSynch X-Git-Tag: otter-0.4.0~71 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ee7416d2a7327305768f088519602a4245d65189;p=otter.git at: Generalise PuSynch Signed-off-by: Ian Jackson --- diff --git a/apitest/at-otter.rs b/apitest/at-otter.rs index 58cb1759..bf5d2033 100644 --- a/apitest/at-otter.rs +++ b/apitest/at-otter.rs @@ -448,8 +448,8 @@ impl PieceSpecForOp for PuUp<'_, PI> { #[derive(Debug)] /// Synchronise after op but before any ungrab. -pub struct PuSynch<'pcs, PI:Idx>(PuUp<'pcs, PI>); -impl PieceSpecForOp for PuSynch<'_,PI> { +pub struct PuSynch(T); +impl PieceSpecForOp for PuSynch> { type PI = PI; fn id(&self) -> &str { self.0.id() } fn for_update(&mut self) -> Option<&mut PieceInfo> {