]> git.lizzy.rs Git - rust.git/commitdiff
remove unnecessary lifetime bounds
authoroliver-giersch <oliver.giersch@googlemail.com>
Sun, 14 Oct 2018 12:28:01 +0000 (14:28 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Oct 2018 12:28:01 +0000 (14:28 +0200)
generic lifetime bound `'a` can be inferred.

src/libstd/thread/mod.rs

index e1dad9e131153a5ead2aa2b27e06550eea396c59..2f63963c823245b07095507666023a2c7b455f98 100644 (file)
@@ -392,8 +392,8 @@ pub fn spawn<F, T>(self, f: F) -> io::Result<JoinHandle<T>> where
 
     /// 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;