Rollup merge of #64071 - guanqun:style-fix, r=Centril

use just one name when parameters and fields are the same
This commit is contained in:
Mazdak Farrokhzad 2019-09-03 14:27:03 +02:00 committed by GitHub
commit a906a83d98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -335,7 +335,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
runtool: matches.opt_str("runtool"),
host_rustcflags: matches.opt_str("host-rustcflags"),
target_rustcflags: matches.opt_str("target-rustcflags"),
target: target,
target,
host: opt_str2(matches.opt_str("host")),
cdb,
gdb,
@ -345,7 +345,7 @@ pub fn parse_config(args: Vec<String>) -> Config {
lldb_native_rust,
llvm_version: matches.opt_str("llvm-version"),
system_llvm: matches.opt_present("system-llvm"),
android_cross_path: android_cross_path,
android_cross_path,
adb_path: opt_str2(matches.opt_str("adb-path")),
adb_test_dir: opt_str2(matches.opt_str("adb-test-dir")),
adb_device_status: opt_str2(matches.opt_str("target")).contains("android")