Installing clippy via crates.io is deprecated. Please use the following:

rustup component add clippy

on a Rust version 1.29 or later. You may need to run rustup self update if it complains about a missing clippy binary.

See the homepage for more information