Make SearchPath::new public
This commit is contained in:
parent
4c5fc2c334
commit
9566163364
@ -96,7 +96,7 @@ impl SearchPath {
|
|||||||
Self::new(PathKind::All, make_target_lib_path(sysroot, triple))
|
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.
|
// Get the files within the directory.
|
||||||
let files = match std::fs::read_dir(&dir) {
|
let files = match std::fs::read_dir(&dir) {
|
||||||
Ok(files) => files
|
Ok(files) => files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user