Skip to content

Commit bf9dc98

Browse files
remove unnecessary lifetime bounds
generic lifetime bound `'a` can be inferred.
1 parent a52b474 commit bf9dc98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/thread/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ impl Builder {
392392

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

0 commit comments

Comments
 (0)