diff options
| author | bors <bors@rust-lang.org> | 2015-02-22 10:27:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-22 10:27:08 +0000 |
| commit | dcc6ce2c772cb851ac35cbc2ddafcae9bf2fa9fd (patch) | |
| tree | 5c395b9b0e9b905648ed6de581ec601f4cc2ba9f /src/libstd/sync/mpsc/select.rs | |
| parent | eb1b500a9a69b149295c37c2fe2c9409f406f9ea (diff) | |
| parent | 380d23b5d4b9fb8f5f0ebf178590f61528b2483e (diff) | |
| download | rust-dcc6ce2c772cb851ac35cbc2ddafcae9bf2fa9fd.tar.gz rust-dcc6ce2c772cb851ac35cbc2ddafcae9bf2fa9fd.zip | |
Auto merge of #22574 - huonw:remove-lame-statics, r=alexcirchton
Add a basic test that checks that the types catch the most glaring errors that could occur. cc #22444
Diffstat (limited to 'src/libstd/sync/mpsc/select.rs')
| -rw-r--r-- | src/libstd/sync/mpsc/select.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sync/mpsc/select.rs b/src/libstd/sync/mpsc/select.rs index 8fcedd2ab57..db8efe19dc1 100644 --- a/src/libstd/sync/mpsc/select.rs +++ b/src/libstd/sync/mpsc/select.rs @@ -134,7 +134,7 @@ impl Select { /// Creates a new handle into this receiver set for a new receiver. Note /// that this does *not* add the receiver to the receiver set, for that you /// must call the `add` method on the handle itself. - pub fn handle<'a, T: Send + 'static>(&'a self, rx: &'a Receiver<T>) -> Handle<'a, T> { + pub fn handle<'a, T: Send>(&'a self, rx: &'a Receiver<T>) -> Handle<'a, T> { let id = self.next_id.get(); self.next_id.set(id + 1); Handle { @@ -251,7 +251,7 @@ impl Select { fn iter(&self) -> Packets { Packets { cur: self.head } } } -impl<'rx, T: Send + 'static> Handle<'rx, T> { +impl<'rx, T: Send> Handle<'rx, T> { /// Retrieve the id of this handle. #[inline] pub fn id(&self) -> uint { self.id } @@ -322,7 +322,7 @@ impl Drop for Select { } #[unsafe_destructor] -impl<'rx, T: Send + 'static> Drop for Handle<'rx, T> { +impl<'rx, T: Send> Drop for Handle<'rx, T> { fn drop(&mut self) { unsafe { self.remove() } } |
