Make SearchPath::new public

This commit is contained in:
Vetle Rasmussen 2024-09-11 11:40:01 +02:00
parent 4c5fc2c334
commit 9566163364

View File

@ -96,7 +96,7 @@ impl SearchPath {
Self::new(PathKind::All, make_target_lib_path(sysroot, triple))
}
fn new(kind: PathKind, dir: PathBuf) -> Self {
pub fn new(kind: PathKind, dir: PathBuf) -> Self {
// Get the files within the directory.
let files = match std::fs::read_dir(&dir) {
Ok(files) => files