diff --git a/espanso-modulo/build.rs b/espanso-modulo/build.rs index 6694936..429bc28 100644 --- a/espanso-modulo/build.rs +++ b/espanso-modulo/build.rs @@ -403,7 +403,7 @@ fn macos_link_search_path() -> Option { let stdout = String::from_utf8_lossy(&output.stdout); for line in stdout.lines() { if line.contains("libraries: =") { - let path = line.split('=').skip(1).next()?; + let path = line.split('=').nth(1)?; return Some(format!("{}/lib/darwin", path)); } }