Skip to content

Commit 511050b

Browse files
committed
Run 'cargo fmt'
1 parent 8a0255f commit 511050b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/cargo/core/compiler/build_context/target_info.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ use std::str::{self, FromStr};
77
use crate::core::compiler::Kind;
88
use crate::core::TargetKind;
99
use crate::util::CfgExpr;
10-
use crate::util::{CargoResult, CargoResultExt, Cfg, Config, ProcessBuilder, Rustc, process as process_};
10+
use crate::util::{
11+
process as process_, CargoResult, CargoResultExt, Cfg, Config, ProcessBuilder, Rustc,
12+
};
1113

1214
/// Information about the platform target gleaned from querying rustc.
1315
///
@@ -35,7 +37,7 @@ pub struct TargetInfo {
3537
/// Extra flags to pass to `rustdoc`, see `env_args`.
3638
pub rustdocflags: Vec<String>,
3739
pub supports_pipelining: Option<bool>,
38-
pub supports_rustdoc_crate_type: bool
40+
pub supports_rustdoc_crate_type: bool,
3941
}
4042

4143
/// Kind of each file generated by a Unit, part of `FileType`.
@@ -119,8 +121,7 @@ impl TargetInfo {
119121
// on rustdoc rides to stable.
120122
let mut crate_type_test = process_(config.rustdoc()?);
121123
crate_type_test.args(&["--crate-type", "proc-macro", "--help"]);
122-
let supports_rustdoc_crate_type = crate_type_test.exec_with_output()
123-
.is_ok();
124+
let supports_rustdoc_crate_type = crate_type_test.exec_with_output().is_ok();
124125

125126
let target_triple = requested_target
126127
.as_ref()
@@ -212,7 +213,7 @@ impl TargetInfo {
212213
)?,
213214
cfg,
214215
supports_pipelining,
215-
supports_rustdoc_crate_type
216+
supports_rustdoc_crate_type,
216217
})
217218
}
218219

src/cargo/core/compiler/compilation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pub struct Compilation<'cfg> {
7373
primary_unit_rustc_process: Option<ProcessBuilder>,
7474

7575
target_runner: Option<(PathBuf, Vec<String>)>,
76-
supports_rustdoc_crate_type: bool
76+
supports_rustdoc_crate_type: bool,
7777
}
7878

7979
impl<'cfg> Compilation<'cfg> {
@@ -110,7 +110,7 @@ impl<'cfg> Compilation<'cfg> {
110110
host: bcx.host_triple().to_string(),
111111
target: bcx.target_triple().to_string(),
112112
target_runner: target_runner(bcx)?,
113-
supports_rustdoc_crate_type: bcx.target_info.supports_rustdoc_crate_type
113+
supports_rustdoc_crate_type: bcx.target_info.supports_rustdoc_crate_type,
114114
})
115115
}
116116

0 commit comments

Comments
 (0)