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.
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.