mirror of
https://github.com/rust-lang/cargo
synced 2024-10-02 22:13:47 +00:00
Formatting
This commit is contained in:
parent
8331d7d151
commit
223adaca55
|
@ -138,7 +138,9 @@ pub enum CompileMode {
|
|||
/// Building a target with `rustc` to emit `rmeta` metadata only. If
|
||||
/// `test` is true, then it is also compiled with `--test` to check it like
|
||||
/// a test.
|
||||
Check { test: bool },
|
||||
Check {
|
||||
test: bool,
|
||||
},
|
||||
/// Used to indicate benchmarks should be built. This is not used in
|
||||
/// `Unit`, because it is essentially the same as `Test` (indicating
|
||||
/// `--test` should be passed to rustc) and by using `Test` instead it
|
||||
|
@ -146,7 +148,9 @@ pub enum CompileMode {
|
|||
Bench,
|
||||
/// A target that will be documented with `rustdoc`.
|
||||
/// If `deps` is true, then it will also document all dependencies.
|
||||
Doc { deps: bool },
|
||||
Doc {
|
||||
deps: bool,
|
||||
},
|
||||
/// A target that will be tested with `rustdoc`.
|
||||
Doctest,
|
||||
Docscrape,
|
||||
|
|
|
@ -323,7 +323,9 @@ impl Profiles {
|
|||
(InternedString::new("dev"), None)
|
||||
}
|
||||
}
|
||||
CompileMode::Doc { .. } | CompileMode::Docscrape => (InternedString::new("doc"), None),
|
||||
CompileMode::Doc { .. } | CompileMode::Docscrape => {
|
||||
(InternedString::new("doc"), None)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
(self.requested_profile, None)
|
||||
|
|
Loading…
Reference in a new issue