Skip to content

Commit

Permalink
Update neqo-crypto/build.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Thomson <mt@lowentropy.net>
Signed-off-by: Lars Eggert <lars@eggert.org>
  • Loading branch information
larseggert and martinthomson authored Mar 18, 2024
1 parent 4db1c00 commit 90004d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neqo-crypto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ fn pkg_config() -> Vec<String> {
let modversion = modversion.trim().to_string();
// The NSS version number does not follow semver numbering, because it omits the patch version
// when that's 0. Deal with that.
let modversion_for_cmp = if modversion.split('.').count() == 2 {
let modversion_for_cmp = if modversion.chars().filter(|c| c == '.').count() == 1 {
modversion.clone() + ".0"
} else {
modversion.clone()
Expand Down

0 comments on commit 90004d9

Please sign in to comment.