remove unnecessary lifetime bounds

generic lifetime bound `'a` can be inferred.
This commit is contained in:
oliver-giersch 2018-10-14 14:28:01 +02:00 committed by GitHub
parent a52b474b52
commit bf9dc98655
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;