diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-20 17:07:17 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-20 21:14:20 -0800 |
| commit | bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6 (patch) | |
| tree | d321d9cab209f002e4236afd09d5d12fd640acc7 /src/libstd/sync.rs | |
| parent | a307608781027d8c1b4c99bf1a8ac2c0d960a1bc (diff) | |
| download | rust-bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6.tar.gz rust-bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6.zip | |
librustc: Separate most trait bounds with '+'. rs=plussing
Diffstat (limited to 'src/libstd/sync.rs')
| -rw-r--r-- | src/libstd/sync.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sync.rs b/src/libstd/sync.rs index fd0b0d6be3a..66d17392417 100644 --- a/src/libstd/sync.rs +++ b/src/libstd/sync.rs @@ -84,7 +84,7 @@ struct SemInner<Q> { enum Sem<Q> = Exclusive<SemInner<Q>>; #[doc(hidden)] -fn new_sem<Q: Owned>(count: int, q: Q) -> Sem<Q> { +fn new_sem<Q:Owned>(count: int, q: Q) -> Sem<Q> { Sem(exclusive(SemInner { mut count: count, waiters: new_waitqueue(), blocked: q })) } @@ -99,7 +99,7 @@ fn new_sem_and_signal(count: int, num_condvars: uint) } #[doc(hidden)] -impl<Q: Owned> &Sem<Q> { +impl<Q:Owned> &Sem<Q> { fn acquire() { let mut waiter_nobe = None; unsafe { @@ -167,7 +167,7 @@ type SemRelease = SemReleaseGeneric<()>; type SemAndSignalRelease = SemReleaseGeneric<~[Waitqueue]>; struct SemReleaseGeneric<Q> { sem: &Sem<Q> } -impl<Q: Owned> Drop for SemReleaseGeneric<Q> { +impl<Q:Owned> Drop for SemReleaseGeneric<Q> { fn finalize(&self) { self.sem.release(); } |
