]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #87720 - matthiaskrgr:clippy_into, r=jyn514
authorYuki Okushi <jtitor@2k36.org>
Tue, 3 Aug 2021 23:05:54 +0000 (08:05 +0900)
committerGitHub <noreply@github.com>
Tue, 3 Aug 2021 23:05:54 +0000 (08:05 +0900)
commit917c047c33a0b44b5406c8aab9e47d693106cbba
tree17051d5102ae6275250ea3bd4ef280ea84a0dbe3
parent75e14873b83f458841f815ccb3b7f4eac83b4327
parent02b7754f9e7c01048581a283ced85183cc34a61f
Rollup merge of #87720 - matthiaskrgr:clippy_into, r=jyn514

don't use .into() to convert types to identical types (clippy::useless_conversion)

Example:
let _x: String = String::from("hello world").into();
compiler/rustc_mir/src/interpret/operand.rs