We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fc2a56 + a36b915 commit 1b5e061Copy full SHA for 1b5e061
src/lib.rs
@@ -575,7 +575,7 @@ impl Library {
575
}
576
577
fn parse_modversion(&mut self, output: &str) {
578
- self.version.push_str(output.trim());
+ self.version.push_str(output.lines().nth(0).unwrap().trim());
579
580
581
@@ -681,6 +681,12 @@ fn system_library_mac_test() {
681
"png16",
682
&[PathBuf::from("/usr/local/lib")]
683
));
684
+
685
+ let libpng = Config::new()
686
+ .range_version("1".."99")
687
+ .probe("libpng16")
688
+ .unwrap();
689
+ assert!(libpng.version.find('\n').is_none());
690
691
692
0 commit comments