diff options
Diffstat (limited to 'src/sync.rs')
-rw-r--r-- | src/sync.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sync.rs b/src/sync.rs index 06d6cea4..0fcd0862 100644 --- a/src/sync.rs +++ b/src/sync.rs @@ -31,10 +31,7 @@ pub struct FairMutex<T> { impl<T> FairMutex<T> { /// Create a new fair mutex pub fn new(data: T) -> FairMutex<T> { - FairMutex { - data: Mutex::new(data), - next: Mutex::new(()), - } + FairMutex { data: Mutex::new(data), next: Mutex::new(()) } } /// Lock the mutex |