RS.CLIPPY.FLOAT_ARITHMETIC

Any floating-point arithmetic statement

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

What it does

Checks for float arithmetic.

Why restrict this?

For some embedded systems or kernel development, it can be useful to rule out floating-point numbers.

Example

a + 1.0;