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.
target_dir_cands()
1 parent 4c0a523 commit b475c93Copy full SHA for b475c93
src/test_util.rs
@@ -151,7 +151,7 @@ impl Nginx {
151
}
152
153
#[cfg(target_os = "macos")]
154
-fn target_cands() -> Option<Vec<PathBuf>> {
+fn target_dir_cands() -> Option<Vec<PathBuf>> {
155
match std::env::var("DYLD_FALLBACK_LIBRARY_PATH") {
156
Ok(cands) => Some(cands.split(':').map(PathBuf::from).collect()),
157
Err(_) => None,
@@ -167,7 +167,7 @@ fn target_dir_cands() -> Option<Vec<PathBuf>> {
167
168
/// search path and return the path to the target
169
pub fn target_path(target_name: &str) -> std::io::Result<PathBuf> {
170
- if let Some(cands) = target_cands() {
+ if let Some(cands) = target_dir_cands() {
171
for dir in cands {
172
if let Ok(iter) = read_dir(dir) {
173
for entry in iter {
0 commit comments