Skip to content

Commit 223adac

Browse files
committed
Formatting
1 parent 8331d7d commit 223adac

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/cargo/core/compiler/build_config.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,19 @@ pub enum CompileMode {
138138
/// Building a target with `rustc` to emit `rmeta` metadata only. If
139139
/// `test` is true, then it is also compiled with `--test` to check it like
140140
/// a test.
141-
Check { test: bool },
141+
Check {
142+
test: bool,
143+
},
142144
/// Used to indicate benchmarks should be built. This is not used in
143145
/// `Unit`, because it is essentially the same as `Test` (indicating
144146
/// `--test` should be passed to rustc) and by using `Test` instead it
145147
/// allows some de-duping of Units to occur.
146148
Bench,
147149
/// A target that will be documented with `rustdoc`.
148150
/// If `deps` is true, then it will also document all dependencies.
149-
Doc { deps: bool },
151+
Doc {
152+
deps: bool,
153+
},
150154
/// A target that will be tested with `rustdoc`.
151155
Doctest,
152156
Docscrape,

src/cargo/core/profiles.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ impl Profiles {
323323
(InternedString::new("dev"), None)
324324
}
325325
}
326-
CompileMode::Doc { .. } | CompileMode::Docscrape => (InternedString::new("doc"), None),
326+
CompileMode::Doc { .. } | CompileMode::Docscrape => {
327+
(InternedString::new("doc"), None)
328+
}
327329
}
328330
} else {
329331
(self.requested_profile, None)

0 commit comments

Comments
 (0)