From 2cd974c80bb07e4143a7f274d3d9512ce5526664 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Tue, 5 Oct 2021 23:18:26 +0200 Subject: [PATCH] fix(modulo): fix warnings --- espanso-modulo/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }