Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit bdcc6cf

Browse files
committed
Fixed formatting.
1 parent f9180cb commit bdcc6cf

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/bin/cargo_semver.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,7 @@ fn run(config: &cargo::Config, matches: &getopts::Matches) -> Result<()> {
9696
// Obtain WorkInfo for the "current"
9797
let current = if let Some(name_and_version) = matches.opt_str("C") {
9898
// -C "name:version" requires fetching the appropriate package:
99-
WorkInfo::remote(
100-
config,
101-
&PackageNameAndVersion::parse(&name_and_version)?,
102-
)?
99+
WorkInfo::remote(config, &PackageNameAndVersion::parse(&name_and_version)?)?
103100
} else if let Some(path) = matches.opt_str("c").map(PathBuf::from) {
104101
// -c "local_path":
105102
WorkInfo::local(config, &find_root_manifest_for_wd(&path)?)?

src/changes.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -887,12 +887,14 @@ impl<'tcx> ChangeSet<'tcx> {
887887
}
888888

889889
/// Format the contents of a change set for user output.
890-
pub fn output(&self,
891-
session: &Session,
892-
version: &str,
893-
verbose: bool,
894-
compact: bool,
895-
api_guidelines: bool) {
890+
pub fn output(
891+
&self,
892+
session: &Session,
893+
version: &str,
894+
verbose: bool,
895+
compact: bool,
896+
api_guidelines: bool,
897+
) {
896898
if let Ok(mut new_version) = Version::parse(version) {
897899
if new_version.major == 0 {
898900
new_version.increment_patch();

0 commit comments

Comments
 (0)