Skip to content

Commit

Permalink
fix: use same name target_dir_cands()
Browse files Browse the repository at this point in the history
  • Loading branch information
JyJyJcr committed Apr 7, 2024
1 parent d41e314 commit d3cb516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl Nginx {
}

#[cfg(target_os = "macos")]
fn target_cands() -> Option<Vec<PathBuf>> {
fn target_dir_cands() -> Option<Vec<PathBuf>> {
match std::env::var("DYLD_FALLBACK_LIBRARY_PATH") {
Ok(cands) => Some(cands.split(':').map(PathBuf::from).collect()),
Err(_) => None,
Expand All @@ -167,7 +167,7 @@ fn target_dir_cands() -> Option<Vec<PathBuf>> {

/// search path and return the path to the target
pub fn target_path(target_name: &str) -> std::io::Result<PathBuf> {
if let Some(cands) = target_cands() {
if let Some(cands) = target_dir_cands() {
for dir in cands {
if let Ok(iter) = read_dir(dir) {
for entry in iter {
Expand Down

0 comments on commit d3cb516

Please sign in to comment.