fixed formatting

This commit is contained in:
aslezar
2024-12-15 16:54:08 +05:30
parent 88cb8d5c36
commit 5c525a4d56

View File

@@ -271,9 +271,9 @@ fn check_for_sufficient_glibcxx_versions(contents: Vec<u8>) -> Result<bool, Stri
#[allow(dead_code)] #[allow(dead_code)]
fn extract_ldd_version(output: &[u8]) -> Option<SimpleSemver> { fn extract_ldd_version(output: &[u8]) -> Option<SimpleSemver> {
LDD_VERSION_RE.captures(output).map(|m| SimpleSemver { LDD_VERSION_RE.captures(output).map(|m| SimpleSemver {
major: m.get(1).map_or(0, |s| u32_from_bytes(s.as_bytes())), major: m.get(1).map_or(0, |s| u32_from_bytes(s.as_bytes())),
minor: m.get(2).map_or(0, |s| u32_from_bytes(s.as_bytes())), minor: m.get(2).map_or(0, |s| u32_from_bytes(s.as_bytes())),
patch: 0, patch: 0,
}) })
} }