Rust

Rust

Made by DeepSource

Unnecessary parentheses RS-C1001

Anti-pattern
Minor
Autofix

Arguments in method calls need not be parenthesized. The level of nesting in code is more obvious when unnecessary parentheses are omitted.

Remove any unnecessary parentheses in method-call arguments.

Bad practice

do_thing((a), b, (c + d));

Recommended

do_thing(a, b, c + d);