Apply Clippy suggestions automatically

cargo clippy

  • A collection of lints to catch common mistakes and improve your Rust code.
    More information: <https://github.com/rust-lang/rust-clippy>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

cargo clippy --fix

click the source code to copy install cargo clippy on any operating system with command-not-found.com