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
One approach is to use (if/when it is implemented) the proposed #[must_use] annotation on functions: rust-lang/rfcs#886.
Another approach is to change the return value to a #[repr(transparent)] wrapper that is marked #[must_use], if/when this proposal is implemented: rust-lang/rfcs#1758.
This is a good-first-bug since this is something anybody can do, once the facilities are available to actually do it, but note that it requires additional work on rustc.
The text was updated successfully, but these errors were encountered:
One approach is to use (if/when it is implemented) the proposed
#[must_use]
annotation on functions: rust-lang/rfcs#886.Another approach is to change the return value to a
#[repr(transparent)]
wrapper that is marked#[must_use]
, if/when this proposal is implemented: rust-lang/rfcs#1758.This is a good-first-bug since this is something anybody can do, once the facilities are available to actually do it, but note that it requires additional work on rustc.
The text was updated successfully, but these errors were encountered: