Skip to content

Commit 50b128b

Browse files
committed
Add explicit lifetimes in types
1 parent 3fefced commit 50b128b

File tree

16 files changed

+41
-41
lines changed

16 files changed

+41
-41
lines changed

rayon-core/src/scope/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ impl<'scope> ScopeBase<'scope> {
624624
}
625625

626626
impl<'scope> fmt::Debug for Scope<'scope> {
627-
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
627+
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
628628
fmt.debug_struct("Scope")
629629
.field("pool_id", &self.base.registry.id())
630630
.field("owner_thread_index", &self.base.owner_thread_index)

src/iter/collect/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl<'c, T: Send + 'c> Collect<'c, T> {
8484
}
8585

8686
/// Create a consumer on a slice of our memory.
87-
fn as_consumer(&mut self) -> CollectConsumer<T> {
87+
fn as_consumer(&mut self) -> CollectConsumer<'_, T> {
8888
// Reserve the new space.
8989
self.vec.reserve(self.len);
9090

src/iter/empty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl<T: Send> Clone for Empty<T> {
4040
}
4141

4242
impl<T: Send> fmt::Debug for Empty<T> {
43-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
43+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
4444
f.pad("Empty")
4545
}
4646
}

src/iter/filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct Filter<I: ParallelIterator, P> {
1616
}
1717

1818
impl<I: ParallelIterator + Debug, P> Debug for Filter<I, P> {
19-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
19+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2020
f.debug_struct("Filter").field("base", &self.base).finish()
2121
}
2222
}

src/iter/filter_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct FilterMap<I: ParallelIterator, P> {
1616
}
1717

1818
impl<I: ParallelIterator + Debug, P> Debug for FilterMap<I, P> {
19-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
19+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2020
f.debug_struct("FilterMap")
2121
.field("base", &self.base)
2222
.finish()

src/iter/flat_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct FlatMap<I: ParallelIterator, F> {
1616
}
1717

1818
impl<I: ParallelIterator + Debug, F> Debug for FlatMap<I, F> {
19-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
19+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2020
f.debug_struct("FlatMap").field("base", &self.base).finish()
2121
}
2222
}

src/iter/fold.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub struct Fold<I, ID, F> {
3333
}
3434

3535
impl<I: ParallelIterator + Debug, ID, F> Debug for Fold<I, ID, F> {
36-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
36+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
3737
f.debug_struct("Fold").field("base", &self.base).finish()
3838
}
3939
}
@@ -201,7 +201,7 @@ pub struct FoldWith<I, U, F> {
201201
}
202202

203203
impl<I: ParallelIterator + Debug, U: Debug, F> Debug for FoldWith<I, U, F> {
204-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
204+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
205205
f.debug_struct("FoldWith")
206206
.field("base", &self.base)
207207
.field("item", &self.item)

src/iter/inspect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub struct Inspect<I: ParallelIterator, F> {
1919
}
2020

2121
impl<I: ParallelIterator + Debug, F> Debug for Inspect<I, F> {
22-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
22+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2323
f.debug_struct("Inspect").field("base", &self.base).finish()
2424
}
2525
}

src/iter/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct Map<I: ParallelIterator, F> {
1818
}
1919

2020
impl<I: ParallelIterator + Debug, F> Debug for Map<I, F> {
21-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
21+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2222
f.debug_struct("Map").field("base", &self.base).finish()
2323
}
2424
}

src/iter/map_with.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct MapWith<I: ParallelIterator, T, F> {
1818
}
1919

2020
impl<I: ParallelIterator + Debug, T: Debug, F> Debug for MapWith<I, T, F> {
21-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
21+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2222
f.debug_struct("MapWith")
2323
.field("base", &self.base)
2424
.field("item", &self.item)
@@ -345,7 +345,7 @@ pub struct MapInit<I: ParallelIterator, INIT, F> {
345345
}
346346

347347
impl<I: ParallelIterator + Debug, INIT, F> Debug for MapInit<I, INIT, F> {
348-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
348+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
349349
f.debug_struct("MapInit").field("base", &self.base).finish()
350350
}
351351
}

0 commit comments

Comments
 (0)