Skip to content

Analyzer equivalent to must_use on Result #20

Description

@jtmueller

Is your feature request related to a problem? Please describe.

Rust defines the #[must_use] attribute on the Result type so that the compiler gives a warning if you forget to check the return value from a Result-returning function. Currently RustyOptions does not do this, making it easy to forget this crucial step.

https://doc.rust-lang.org/std/result/#results-must-be-used

Describe the solution you'd like
C# doesn't have must_use, but it might be possible to create an analyzer that does the same thing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions