Skip to content
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

Stop allowing an empty loop #836

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

gwilymk
Copy link
Member

@gwilymk gwilymk commented Feb 5, 2025

We previously allowed an empty loop (loop {}) to make a function never return. This is a clippy warning, and probably for good reason.

I've swapped them all with loop { syscall::halt() } which is the more correct thing to do in an infinite loop :).

  • no changelog update needed

@gwilymk gwilymk enabled auto-merge February 5, 2025 12:28
@gwilymk gwilymk merged commit 05c25b7 into agbrs:master Feb 5, 2025
3 checks passed
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.

1 participant