RS.CLIPPY.NO_EFFECT

Statements with no effect

This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: no_effect. Copyright ©2025 The Rust Team. All rights reserved.

What it does

Checks for statements which have no effect.

Why is this bad?

Unlike dead code, these statements are actually executed. However, as they have no effect, all they do is make the code less readable.

Example

0;