Checks for trait-behavior-preserving calls in positions where a trait implementation is expected.
Such unnecessary calls make the code more verbose and could impact performance.
let _ = Command::new("ls").args(["-a", "-l"].iter());
let _ = Path::new("/").join(Path::new("."));
Use instead:
let _ = Command::new("ls").args(["-a", "-l"]);
let _ = Path::new("/").join(".");