-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
ThreadPriorityValue::MIN/ThreadPriorityValue::MAX have unexpected types #38
Comments
Thank you for reporting this, I'll have to check. It has been a long time since I last worked on this project. Not to mention that I privately am rewriting it to something much simpler than it is now. |
So I checked the code, and I remember the reason why I did it this way. So the I understand that the |
What you are talking about is What clippy is talking about is |
I believe those should have
ThreadPriorityValue
type, notu8
. It is always possible to convert it tou8
later if desired, but convertingu8
toThreadPriorityValue
requiresunwrap()
orexpect()
, which is inconvenient and unnecessary.P.S. Clippy warning here has nothing to do with
From<u8>
, it suggests you to doimpl From<ThreadPriorityValue> for u8
:thread-priority/src/lib.rs
Lines 264 to 271 in 74cf570
The text was updated successfully, but these errors were encountered: