Skip to content

Commit e305ee6

Browse files
committed
manual fixups
1 parent 2acfa83 commit e305ee6

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed

src/libtest/lib.rs

+13-20
Original file line numberDiff line numberDiff line change
@@ -316,27 +316,20 @@ impl TestOpts {
316316
/// Result of parsing the options.
317317
pub type OptRes = Result<TestOpts, String>;
318318

319+
#[cfg_attr(rustfmt, rustfmt_skip)]
319320
fn optgroups() -> Vec<getopts::OptGroup> {
320-
vec![getopts::optflag("", "ignored", "Run ignored tests"),
321-
getopts::optflag("", "test", "Run tests and not benchmarks"),
322-
getopts::optflag("", "bench", "Run benchmarks instead of tests"),
323-
getopts::optflag("h", "help", "Display this message (longer with --help)"),
324-
getopts::optopt("",
325-
"logfile",
326-
"Write logs to the specified file instead of stdout",
327-
"PATH"),
328-
getopts::optflag("",
329-
"nocapture",
330-
"don't capture stdout/stderr of each task, allow printing directly"),
331-
getopts::optopt("",
332-
"color",
333-
"Configure coloring of output:
334-
auto = colorize if stdout \
335-
is a tty and tests are run on serially (default);
336-
always = \
337-
always colorize output;
338-
never = never colorize output;",
339-
"auto|always|never")]
321+
vec!(getopts::optflag("", "ignored", "Run ignored tests"),
322+
getopts::optflag("", "test", "Run tests and not benchmarks"),
323+
getopts::optflag("", "bench", "Run benchmarks instead of tests"),
324+
getopts::optflag("h", "help", "Display this message (longer with --help)"),
325+
getopts::optopt("", "logfile", "Write logs to the specified file instead \
326+
of stdout", "PATH"),
327+
getopts::optflag("", "nocapture", "don't capture stdout/stderr of each \
328+
task, allow printing directly"),
329+
getopts::optopt("", "color", "Configure coloring of output:
330+
auto = colorize if stdout is a tty and tests are run on serially (default);
331+
always = always colorize output;
332+
never = never colorize output;", "auto|always|never"))
340333
}
341334

342335
fn usage(binary: &str) {

0 commit comments

Comments
 (0)