Skip to content

Commit

Permalink
apply suggestions from core review
Browse files Browse the repository at this point in the history
  • Loading branch information
wathenjiang committed Nov 24, 2023
1 parent 75d3081 commit ed27f70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tokio/src/runtime/task/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ impl<S: 'static> OwnedTasks<S> {

cfg_taskdump! {
impl<S: 'static> OwnedTasks<S> {
/// Locks the tasks, and calls `f` on an iterator over them.
pub(crate) fn for_each<F>(&self, f: F)
where
F: FnMut(&Task<S>),
Expand Down
2 changes: 1 addition & 1 deletion tokio/src/util/linked_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ cfg_io_driver_impl! {

cfg_taskdump! {
impl<T: Link> LinkedList<T, T::Target> {
pub(crate) fn for_each<F>(&mut self, f: &mut F)
pub(crate) fn for_each<F>(&mut self, mut f: F)
where
F: FnMut(&T::Handle),
{
Expand Down

0 comments on commit ed27f70

Please sign in to comment.