about summary refs log tree commit diff
path: root/src/libextra/timer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libextra/timer.rs')
-rw-r--r--src/libextra/timer.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libextra/timer.rs b/src/libextra/timer.rs
index d957ac43801..1cfbeb9e514 100644
--- a/src/libextra/timer.rs
+++ b/src/libextra/timer.rs
@@ -118,10 +118,8 @@ pub fn sleep(iotask: &IoTask, msecs: uint) {
  * on the provided port in the allotted timeout period, then the result will
  * be a `Some(T)`. If not, then `None` will be returned.
  */
-pub fn recv_timeout<T:Copy + Send>(iotask: &IoTask,
-                                   msecs: uint,
-                                   wait_po: &Port<T>)
-                                   -> Option<T> {
+pub fn recv_timeout<T:Send>(iotask: &IoTask, msecs: uint, wait_po: &Port<T>)
+                            -> Option<T> {
     let (timeout_po, timeout_ch) = stream::<()>();
     let mut timeout_po = timeout_po;
     delayed_send(iotask, msecs, &timeout_ch, ());