mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
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))
|
||||
}
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user