]> git.lizzy.rs Git - rust.git/blobdiff - clippy_dev/src/bless.rs
Move `return_self_not_must_use` to `pedantic`
[rust.git] / clippy_dev / src / bless.rs
index 19153aa74d0b8956dfdeb3c14fa7033cbd2ce448..daf0fcc993bad320ff894014596fa13328ba0307 100644 (file)
@@ -85,10 +85,7 @@ fn updated_since_clippy_build(path: &Path) -> Option<bool> {
 }
 
 fn build_dir() -> PathBuf {
-    let profile = env::var("PROFILE").unwrap_or_else(|_| "debug".to_string());
-    let mut path = PathBuf::new();
-    path.push(CARGO_TARGET_DIR.clone());
-    path.push(profile);
-    path.push("test_build_base");
+    let mut path = std::env::current_exe().unwrap();
+    path.set_file_name("test");
     path
 }