Skip to content

Commit 72d6c54

Browse files
committed
cargo fmt
1 parent ddd5c83 commit 72d6c54

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/cargo/ops/registry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub fn publish(ws: &Workspace<'_>, opts: &PublishOpts<'_>) -> CargoResult<()> {
168168
cli_features: cli_features,
169169
},
170170
)?
171-
.unwrap();
171+
.unwrap();
172172

173173
opts.config
174174
.shell()
@@ -262,7 +262,7 @@ fn transmit(
262262
DepKind::Build => "build",
263263
DepKind::Development => "dev",
264264
}
265-
.to_string(),
265+
.to_string(),
266266
registry: dep_registry,
267267
explicit_name_in_toml: dep.explicit_name_in_toml().map(|s| s.to_string()),
268268
})

tests/testsuite/publish.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,9 @@ fn in_virtual_workspace() {
17371737

17381738
p.cargo("publish --no-verify --token sekrit")
17391739
.with_status(101)
1740-
.with_stderr("error: the `-p` argument must be specified in the root of a virtual workspace")
1740+
.with_stderr(
1741+
"error: the `-p` argument must be specified in the root of a virtual workspace",
1742+
)
17411743
.run();
17421744
}
17431745

0 commit comments

Comments
 (0)