Flashes Home Search Notifications Sign in Post
coreyja @coreyja.com · Dec 4

⚠️ #Rustlang Tip: Use the #[must_use] attribute to ensure important return values aren't ignored. Result is already marked as must_use but other types can be too! It's good to add #[must_use] when ignoring the return value of a function is almost always a bug.

8 likes 2 replies

?

Replies

coreyja · Dec 4

Reference: https://std-dev-guide.rust-lang.org/policy/must-use.html

Legal

Privacy Policy Terms and Conditions

Contact

Support FAQs

Follow

Bluesky Instagram Threads
Flashes for Bluesky Get it on the App Store