aboutsummaryrefslogtreecommitdiff
path: root/src/sync.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2019-03-30 16:48:36 +0000
committerGitHub <noreply@github.com>2019-03-30 16:48:36 +0000
commitcfd025b5289bc305470a96657868c982a2b13bc2 (patch)
tree093b9105c881e28b909e031c46d2054016b643b3 /src/sync.rs
parent91aa683bcd060b2ac2f621a388a6448f564d0537 (diff)
downloadalacritty-cfd025b5289bc305470a96657868c982a2b13bc2.tar.gz
alacritty-cfd025b5289bc305470a96657868c982a2b13bc2.zip
Add rustfmt style guidev0.3.0-rc1
Diffstat (limited to 'src/sync.rs')
-rw-r--r--src/sync.rs5
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