Skip to content

Commit 0bf436d

Browse files
committed
fix formatting
1 parent d87d57d commit 0bf436d

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

crates/cargo-test-support/src/registry.rs

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,12 @@ impl Package {
10511051
self.append_manifest(&mut a);
10521052
}
10531053
if self.files.is_empty() {
1054-
self.append(&mut a, "src/lib.rs", DEFAULT_MODE, &EntryData::Regular("".into()));
1054+
self.append(
1055+
&mut a,
1056+
"src/lib.rs",
1057+
DEFAULT_MODE,
1058+
&EntryData::Regular("".into()),
1059+
);
10551060
} else {
10561061
for PackageFile {
10571062
path,
@@ -1125,7 +1130,12 @@ impl Package {
11251130
manifest.push_str("[lib]\nproc-macro = true\n");
11261131
}
11271132

1128-
self.append(ar, "Cargo.toml", DEFAULT_MODE, &EntryData::Regular(manifest.into()));
1133+
self.append(
1134+
ar,
1135+
"Cargo.toml",
1136+
DEFAULT_MODE,
1137+
&EntryData::Regular(manifest.into()),
1138+
);
11291139
}
11301140

11311141
fn append<W: Write>(&self, ar: &mut Builder<W>, file: &str, mode: u32, contents: &EntryData) {
@@ -1137,7 +1147,13 @@ impl Package {
11371147
);
11381148
}
11391149

1140-
fn append_raw<W: Write>(&self, ar: &mut Builder<W>, path: &str, mode: u32, contents: &EntryData) {
1150+
fn append_raw<W: Write>(
1151+
&self,
1152+
ar: &mut Builder<W>,
1153+
path: &str,
1154+
mode: u32,
1155+
contents: &EntryData,
1156+
) {
11411157
let mut header = Header::new_ustar();
11421158
let contents = match contents {
11431159
EntryData::Regular(contents) => contents.as_str(),

0 commit comments

Comments
 (0)