Skip to content

Add the lint clippy::must_use_candidate #565

@phip1611

Description

@phip1611

I think that we should enable this lint by default which forces writing #[must_use] where possible. All functions that return some kind of result must also be consumed or ignored by let _ = foo(). This will help programmers to prevent code mistakes. The rust std library also uses the #[must_use] attributes in every possible place.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions