about summary refs log tree commit diff
path: root/src/libstd/rt/mpmc_bounded_queue.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-11-20 14:17:12 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-11-26 08:23:57 -0800
commit1eca34de7dd55719cd83153994e5caf2027f62a2 (patch)
tree14ba2903a9ead6e569d08a33c9ebfc2c6ba07e9e /src/libstd/rt/mpmc_bounded_queue.rs
parent6801bc8f552ce740deb60212903ba43de197689c (diff)
downloadrust-1eca34de7dd55719cd83153994e5caf2027f62a2.tar.gz
rust-1eca34de7dd55719cd83153994e5caf2027f62a2.zip
libstd: Remove all non-`proc` uses of `do` from libstd
Diffstat (limited to 'src/libstd/rt/mpmc_bounded_queue.rs')
-rw-r--r--src/libstd/rt/mpmc_bounded_queue.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/mpmc_bounded_queue.rs b/src/libstd/rt/mpmc_bounded_queue.rs
index 2f61a433983..7f607fcf12a 100644
--- a/src/libstd/rt/mpmc_bounded_queue.rs
+++ b/src/libstd/rt/mpmc_bounded_queue.rs
@@ -68,9 +68,9 @@ impl<T: Send> State<T> {
         } else {
             capacity
         };
-        let buffer = do vec::from_fn(capacity) |i:uint| {
+        let buffer = vec::from_fn(capacity, |i:uint| {
             Node{sequence:AtomicUint::new(i),value:None}
-        };
+        });
         State{
             pad0: [0, ..64],
             buffer: buffer,