From d188240939dd03e2b8408d7a3a11fa0d1d362e81 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Tue, 18 Oct 2022 18:09:43 -0700 Subject: [PATCH] Less opinionated DynWriteLock Allows easier reuse by future variants of UiOutputPair. --- src/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index 2cfd9af0e..56119f447 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -239,9 +239,9 @@ enum UiOutputPair { } /// Wrapper to implement `Write` for locked `Box`. -struct DynWriteLock<'a, 'output>(MutexGuard<'a, Box>); +struct DynWriteLock<'a, T>(MutexGuard<'a, T>); -impl Write for DynWriteLock<'_, '_> { +impl Write for DynWriteLock<'_, T> { fn write(&mut self, buf: &[u8]) -> io::Result { self.0.write(buf) }