Skip to content

Commit 1bbd505

Browse files
committed
add fmt
1 parent 2929efd commit 1bbd505

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,14 @@ pub trait AppExt: Sized {
9595
._arg(opt("all-targets", all))
9696
}
9797

98-
fn arg_targets_lib_bin_example(self, lib: &'static str, bin: &'static str, bins: &'static str, example: &'static str, examples: &'static str) -> Self {
98+
fn arg_targets_lib_bin_example(
99+
self,
100+
lib: &'static str,
101+
bin: &'static str,
102+
bins: &'static str,
103+
example: &'static str,
104+
examples: &'static str,
105+
) -> Self {
99106
self._arg(opt("lib", lib))
100107
._arg(optional_multi_opt("bin", "NAME", bin))
101108
._arg(opt("bins", bins))

tests/testsuite/doc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ fn doc_lib_bin_example_same_name_documents_examples_when_requested() {
593593
)
594594
.build();
595595

596-
p.cargo("doc --examples")
596+
p.cargo("doc --examples")
597597
.with_stderr(
598598
"\
599599
[CHECKING] foo v0.0.1 ([CWD])
@@ -615,7 +615,6 @@ fn doc_lib_bin_example_same_name_documents_examples_when_requested() {
615615
assert!(example_doc_html_2.contains("Example2"));
616616
}
617617

618-
619618
#[cargo_test]
620619
fn doc_dash_p() {
621620
let p = project()

0 commit comments

Comments
 (0)