about summary refs log tree commit diff
path: root/compiler/rustc_driver/src/lib.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-25 16:42:35 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2022-12-25 17:32:26 +0100
commitd8874f259a00025e65439cd388f2465e412232d0 (patch)
treef957ca4a58b2ecd48befc7b3959e0daa75743923 /compiler/rustc_driver/src/lib.rs
parentd9ee0f468f8d07e92da94fe991db91e95822d721 (diff)
downloadrust-d8874f259a00025e65439cd388f2465e412232d0.tar.gz
rust-d8874f259a00025e65439cd388f2465e412232d0.zip
fix more clippy::style findings
match_result_ok
obfuscated_if_else
single_char_add
writeln_empty_string
collapsible_match
iter_cloned_collect
unnecessary_mut_passed
Diffstat (limited to 'compiler/rustc_driver/src/lib.rs')
-rw-r--r--compiler/rustc_driver/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
index 236f66eae72..31e08c44d29 100644
--- a/compiler/rustc_driver/src/lib.rs
+++ b/compiler/rustc_driver/src/lib.rs
@@ -653,7 +653,7 @@ fn print_crate_info(
     for req in &sess.opts.prints {
         match *req {
             TargetList => {
-                let mut targets = rustc_target::spec::TARGETS.iter().copied().collect::<Vec<_>>();
+                let mut targets = rustc_target::spec::TARGETS.to_vec();
                 targets.sort_unstable();
                 println!("{}", targets.join("\n"));
             }