prefer-multiplication-over-power Prefer multiplication over squaring with exponentiation Exponentiation performs a general power operation when an expression is only squared. Instead, you SHOULD multiply the base by itself when its evaluation may be duplicated. - Category: performance - Level: warning - Fix: automatic - Scope: module Reported function square(value: float64): float64 { return value ** 2; } Accepted function square(value: float64): float64 { return value * value; } Prior art - Clippy ยท suboptimalflops language/linter/src/rules/performance/prefermultiplicationoverpower.rs:8