diff --git a/tests/testsuite/build_script.rs b/tests/testsuite/build_script.rs index 3f436870490..c399c98d9aa 100644 --- a/tests/testsuite/build_script.rs +++ b/tests/testsuite/build_script.rs @@ -3554,8 +3554,7 @@ fn rename_with_link_search_path() { // the `p` project. On OSX the `libfoo.dylib` artifact references the // original path in `p` so we want to make sure that it can't find it (hence // the deletion). - let root = p.root(); - let root = root.join("target").join("debug").join("deps"); + let root = p.root().join("target").join("debug").join("deps"); let file = format!("{}foo{}", env::consts::DLL_PREFIX, env::consts::DLL_SUFFIX); let src = root.join(&file);