File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ pub enum FileMatch {
30
30
// FIXME (#2658): I'm not happy how this module turned out. Should
31
31
// probably just be folded into cstore.
32
32
33
- /// Functions with type `pick` take a parent directory as well as
34
- /// a file found in that directory.
35
- pub type pick< ' a > = |path : & Path |: ' a -> FileMatch ;
36
-
37
33
pub struct FileSearch < ' a > {
38
34
pub sysroot : & ' a Path ,
39
35
pub search_paths : & ' a SearchPaths ,
@@ -95,7 +91,7 @@ impl<'a> FileSearch<'a> {
95
91
make_target_lib_path ( self . sysroot , self . triple )
96
92
}
97
93
98
- pub fn search ( & self , pick : pick ) {
94
+ pub fn search < F > ( & self , mut pick : F ) where F : FnMut ( & Path ) -> FileMatch {
99
95
self . for_each_lib_search_path ( |lib_search_path| {
100
96
debug ! ( "searching {}" , lib_search_path. display( ) ) ;
101
97
match fs:: readdir ( lib_search_path) {
You can’t perform that action at this time.
0 commit comments