Merge pull request #2 from oliver-giersch/unchecked_thread_spawning_fixes

remove unnecessary lifetime bounds
This commit is contained in:
oliver-giersch 2018-10-14 22:34:40 +02:00 committed by GitHub
commit 9b9708abd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -392,8 +392,8 @@ impl Builder {
/// FIXME: Doc
#[unstable(feature = "thread_spawn_unchecked", issue = "0")]
pub unsafe fn spawn_unchecked<'a, F, T>(self, f: F) -> io::Result<JoinHandle<T>> where
F: FnOnce() -> T, F: Send + 'a, T: Send + 'a
pub unsafe fn spawn_unchecked<F, T>(self, f: F) -> io::Result<JoinHandle<T>> where
F: FnOnce() -> T, F: Send, T: Send
{
let Builder { name, stack_size } = self;