From: Ian Jackson Date: Thu, 20 May 2021 02:23:33 +0000 (+0100) Subject: progress: Allow impl to have different lifetimes X-Git-Tag: otter-0.6.0~125 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=db0317d2a941ee6b921a54690080b84da94df7ca;p=otter.git progress: Allow impl to have different lifetimes Signed-off-by: Ian Jackson --- diff --git a/src/progress.rs b/src/progress.rs index 31399d65..a23dac00 100644 --- a/src/progress.rs +++ b/src/progress.rs @@ -85,7 +85,7 @@ impl<'t> From<()> for Count<'t> { fn from(_:()) -> Count<'t> { } } #[ext(pub, name=OriginatorExt)] -impl &mut dyn Originator { +impl &'_ mut (dyn Originator + '_) { fn phase_item<'p,'e,P,E>(&mut self, phase: P, item: E) where P: Into>, E: Into>,