Add Send + Sync bounds to the sort_by function box, so that WalkDir can be Send + Sync. To make sure it doesn't regress, we should also add an assert_send and assert_sync macro (see the API guideline for inspiration) and test WalkDir, Iter and IterFilterEntry.
Relevant API Guideline
Add
Send + Sync
bounds to thesort_by
function box, so thatWalkDir
can beSend + Sync
. To make sure it doesn't regress, we should also add anassert_send
andassert_sync
macro (see the API guideline for inspiration) and testWalkDir
,Iter
andIterFilterEntry
.