[PR #297] [CLOSED] fix: check if parallelism is supported before using rayon #407

Closed
opened 2026-06-08 11:27:58 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bootandy/dust/pull/297
Author: @omentic
Created: 1/16/2023
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • ef8cb0b fix: check if parallelism is supported before using rayon

📊 Changes

2 files changed (+31 additions, -6 deletions)

View changed files

📝 src/dir_walker.rs (+30 -5)
📝 src/main.rs (+1 -1)

📄 Description

Closes #296.

I'm pretty new to Rust. If there's a better way to do this - especially if there's a one-liner to only apply .par_bridge() if parallelism is true - please let me know and I'll change it!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bootandy/dust/pull/297 **Author:** [@omentic](https://github.com/omentic) **Created:** 1/16/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`ef8cb0b`](https://github.com/bootandy/dust/commit/ef8cb0b8f763b590899d466f12784e3656f4342c) fix: check if parallelism is supported before using rayon ### 📊 Changes **2 files changed** (+31 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/dir_walker.rs` (+30 -5) 📝 `src/main.rs` (+1 -1) </details> ### 📄 Description Closes #296. I'm pretty new to Rust. If there's a better way to do this - especially if there's a one-liner to only apply `.par_bridge()` if `parallelism` is true - please let me know and I'll change it! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-06-08 11:27:58 +03:00
zhus closed this issue 2026-06-08 11:27:58 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#407