diff --git a/sbroad/sbroad-core/src/utils.rs b/sbroad/sbroad-core/src/utils.rs index b1190771811f80da23ce7e62acdcffb06a921eb1..8f913890f90e42f01b34c98e74dbcad34bc6b384 100644 --- a/sbroad/sbroad-core/src/utils.rs +++ b/sbroad/sbroad-core/src/utils.rs @@ -23,7 +23,10 @@ pub trait MutexLike<T> { } impl<T> MutexLike<T> for TMutex<T> { - type Guard<'a> = TMutexGuard<'a, T> where T: 'a; + type Guard<'a> + = TMutexGuard<'a, T> + where + T: 'a; fn lock(&self) -> Self::Guard<'_> { self.lock() @@ -31,8 +34,10 @@ impl<T> MutexLike<T> for TMutex<T> { } impl<T> MutexLike<T> for RefCell<T> { - type Guard<'a> = RefMut<'a, T> - where T: 'a; + type Guard<'a> + = RefMut<'a, T> + where + T: 'a; fn lock(&self) -> Self::Guard<'_> { self.borrow_mut()