]> git.lizzy.rs Git - rust.git/commit
Auto merge of #42896 - llogiq:clippy_compiletest, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 1 Jul 2017 03:26:29 +0000 (03:26 +0000)
committerbors <bors@rust-lang.org>
Sat, 1 Jul 2017 03:26:29 +0000 (03:26 +0000)
commit4a92ae2524bdd73ea92a570dfc9c7644920482ad
tree1419fd0031722a2b32941678459cffd13b3a3f97
parent7d89b20669be33c2388ad97a3ee90fca4e5684ec
parent7be171db70685eb4f6465f2d9047f8bfe1651708
Auto merge of #42896 - llogiq:clippy_compiletest, r=alexcrichton

fixed some clippy warnings in compiletest

This is mainly readability stuff. Whenever the `clone_ref` lint asked me to clone the dereferenced object, I removed the `.clone()` instead, relying on the fact that it has worked so far and the immutable borrow ensures that the value won't change.
src/tools/compiletest/src/main.rs
src/tools/compiletest/src/runtest.rs