Skip to content

Commit b475c93

Browse files
committed
fix: use same name target_dir_cands()
1 parent 4c0a523 commit b475c93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test_util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl Nginx {
151151
}
152152

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

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

0 commit comments

Comments
 (0)