You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Functions like try_lock and try_lock_with_pid are nonsensical to use without looking at their return value. It feels like these and maybe owns_lock are candidates for the must_use attribute.
The text was updated successfully, but these errors were encountered:
Hmmm, aren't try_lock and try_lock_with_pid already affected by must_use since they return Result? I am not sure if there is a way to make a nested #[must_use] regarding the Ok(bool) scenario.
Functions like
try_lock
andtry_lock_with_pid
are nonsensical to use without looking at their return value. It feels like these and maybeowns_lock
are candidates for the must_use attribute.The text was updated successfully, but these errors were encountered: