about summary refs log tree commit diff
path: root/src/libstd/sync.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-03-24 12:41:19 -0400
committerAlex Crichton <alex@alexcrichton.com>2013-04-08 17:50:14 -0400
commit3136fba5aeca9184c944829596b93e45886fecf2 (patch)
treed8613aa519f2b5de0fa8d5a8bcb9841e6f0709f9 /src/libstd/sync.rs
parent5641777318239926363207f690bf265f7514a63c (diff)
downloadrust-3136fba5aeca9184c944829596b93e45886fecf2.tar.gz
rust-3136fba5aeca9184c944829596b93e45886fecf2.zip
Removing some mutable fields in libstd
Diffstat (limited to 'src/libstd/sync.rs')
-rw-r--r--src/libstd/sync.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/sync.rs b/src/libstd/sync.rs
index 99b3a122d9f..1bfdd7f99d5 100644
--- a/src/libstd/sync.rs
+++ b/src/libstd/sync.rs
@@ -72,7 +72,7 @@ fn broadcast_waitqueue(q: &Waitqueue) -> uint {
 // The building-block used to make semaphores, mutexes, and rwlocks.
 #[doc(hidden)]
 struct SemInner<Q> {
-    mut count: int,
+    count: int,
     waiters:   Waitqueue,
     // Can be either unit or another waitqueue. Some sems shouldn't come with
     // a condition variable attached, others should.
@@ -729,7 +729,6 @@ mod tests {
 
     use core::cast;
     use core::cell::Cell;
-    use core::option;
     use core::ptr;
     use core::result;
     use core::task;