about summary refs log tree commit diff
path: root/src/libstd/c_vec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/c_vec.rs')
-rw-r--r--src/libstd/c_vec.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libstd/c_vec.rs b/src/libstd/c_vec.rs
index 00d250a5fc7..a6cc4c64d20 100644
--- a/src/libstd/c_vec.rs
+++ b/src/libstd/c_vec.rs
@@ -35,17 +35,18 @@
 
 use cast;
 use container::Container;
-use ptr;
+use kinds::Send;
+use ops::Drop;
+use option::{Option, Some, None};
 use ptr::RawPtr;
+use ptr;
 use raw;
-use option::{Option, Some, None};
-use ops::Drop;
 
 /// The type representing a foreign chunk of memory
 pub struct CVec<T> {
     priv base: *mut T,
     priv len: uint,
-    priv dtor: Option<proc()>,
+    priv dtor: Option<proc:Send()>,
 }
 
 #[unsafe_destructor]
@@ -89,7 +90,7 @@ impl<T> CVec<T> {
     /// * dtor - A proc to run when the value is destructed, useful
     ///          for freeing the buffer, etc.
     pub unsafe fn new_with_dtor(base: *mut T, len: uint,
-                                dtor: proc()) -> CVec<T> {
+                                dtor: proc:Send()) -> CVec<T> {
         assert!(base != ptr::mut_null());
         CVec {
             base: base,