fix(modulo): fix warnings

This commit is contained in:
Federico Terzi 2021-10-05 23:18:26 +02:00
parent e3788ea868
commit 2cd974c80b

View File

@ -403,7 +403,7 @@ fn macos_link_search_path() -> Option<String> {
let stdout = String::from_utf8_lossy(&output.stdout); let stdout = String::from_utf8_lossy(&output.stdout);
for line in stdout.lines() { for line in stdout.lines() {
if line.contains("libraries: =") { if line.contains("libraries: =") {
let path = line.split('=').skip(1).next()?; let path = line.split('=').nth(1)?;
return Some(format!("{}/lib/darwin", path)); return Some(format!("{}/lib/darwin", path));
} }
} }