Skip to content

scx_rustland: Refactor dispatch_tasks to simplify control flow #1857

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2025

Conversation

EricccTaiwan
Copy link
Contributor

  1. Replaces a match statement with an if-let binding in dispatch_tasks, as the None arm was unused.

  2. Also replaces a match on Result with an is_err() check, since only the Err case was handled and the Ok arm was empty.

No functional behavior is changed.

@EricccTaiwan EricccTaiwan force-pushed the rustland-refactor branch 2 times, most recently from a1d962e to 4f0664e Compare May 11, 2025 16:42
Replaces a match statement with an if-let binding in
dispatch_tasks, as the None arm was unused.

Also replaces a match on Result with an is_err() check, since only
the Err case was handled and the Ok arm was empty.

No functional behavior is changed.

Signed-off-by: Cheng-Yang Chou <[email protected]>
Copy link
Contributor

@arighi arighi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@arighi arighi added this pull request to the merge queue May 12, 2025
Merged via the queue into sched-ext:main with commit 244b045 May 12, 2025
16 checks passed
@EricccTaiwan EricccTaiwan deleted the rustland-refactor branch May 12, 2025 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants