diff options
Diffstat (limited to 'src/libstd/sync/mpsc/oneshot.rs')
| -rw-r--r-- | src/libstd/sync/mpsc/oneshot.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sync/mpsc/oneshot.rs b/src/libstd/sync/mpsc/oneshot.rs index 55b2caf7c6d..eb45681fa62 100644 --- a/src/libstd/sync/mpsc/oneshot.rs +++ b/src/libstd/sync/mpsc/oneshot.rs @@ -88,7 +88,7 @@ enum MyUpgrade<T> { GoUp(Receiver<T>), } -impl<T: Send + 'static> Packet<T> { +impl<T: Send> Packet<T> { pub fn new() -> Packet<T> { Packet { data: None, @@ -368,7 +368,7 @@ impl<T: Send + 'static> Packet<T> { } #[unsafe_destructor] -impl<T: Send + 'static> Drop for Packet<T> { +impl<T: Send> Drop for Packet<T> { fn drop(&mut self) { assert_eq!(self.state.load(Ordering::SeqCst), DISCONNECTED); } |
