Skip to content

Commit

Permalink
Always strip whitespace before parsing macOS version
Browse files Browse the repository at this point in the history
Also bumps crate version.
  • Loading branch information
cmyr committed Aug 24, 2021
1 parent 5a3fda0 commit 61fa658
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-instruments"
version = "0.4.2"
version = "0.4.3"
authors = ["Colin Rofls <[email protected]>"]
license = "MIT"
description = "Profile binary targets on macOS using Xcode Instruments."
Expand Down
2 changes: 1 addition & 1 deletion src/instruments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fn semver_from_utf8(version: &[u8]) -> Result<Version> {
match version_string.split('.').count() {
1 => to_semver(&format!("{}.0.0", version_string.trim())),
2 => to_semver(&format!("{}.0", version_string.trim())),
3 => to_semver(version_string),
3 => to_semver(version_string.trim()),
_ => Err(anyhow!("invalid version: {}", version_string)),
}
}
Expand Down

0 comments on commit 61fa658

Please sign in to comment.