Skip to content

Commit 1f5d219

Browse files
committed
Cleanup
1 parent e8039e8 commit 1f5d219

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build/cmake_probe.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl LinkSearch {
9292
impl From<&str> for LinkSearch {
9393
fn from(value: &str) -> Self {
9494
let (linkage, value) = Linkage::from_prefixed_str(value);
95-
Self(linkage, value.into())
95+
Self(linkage, PathBuf::from(value))
9696
}
9797
}
9898

@@ -259,8 +259,6 @@ impl<'r> CmakeProbe<'r> {
259259
if !link_paths.contains(&search_path) {
260260
link_paths.push(search_path);
261261
}
262-
} else {
263-
panic!("{}", arg.to_string());
264262
}
265263
link_libs.push(LinkLib(
266264
linkage,

0 commit comments

Comments
 (0)