allow targetDir to be an absolute path

This commit is contained in:
Bryce Berger 2025-01-02 15:51:31 -05:00
parent d3dd40f636
commit 5c143aa65d
No known key found for this signature in database
GPG key ID: F0353FDEC1417AFA

View file

@ -2129,8 +2129,7 @@ impl Config {
Some(Utf8PathBuf::from("target/rust-analyzer"))
}
TargetDirectory::UseSubdirectory(false) => None,
TargetDirectory::Directory(dir) if dir.is_relative() => Some(dir.clone()),
TargetDirectory::Directory(_) => None,
TargetDirectory::Directory(dir) => Some(dir.clone()),
})
}