File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ pub enum FileMatch {
3030// FIXME (#2658): I'm not happy how this module turned out. Should
3131// probably just be folded into cstore.
3232
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-
3733pub struct FileSearch < ' a > {
3834 pub sysroot : & ' a Path ,
3935 pub search_paths : & ' a SearchPaths ,
@@ -95,7 +91,7 @@ impl<'a> FileSearch<'a> {
9591 make_target_lib_path ( self . sysroot , self . triple )
9692 }
9793
98- pub fn search ( & self , pick : pick ) {
94+ pub fn search < F > ( & self , mut pick : F ) where F : FnMut ( & Path ) -> FileMatch {
9995 self . for_each_lib_search_path ( |lib_search_path| {
10096 debug ! ( "searching {}" , lib_search_path. display( ) ) ;
10197 match fs:: readdir ( lib_search_path) {
You can’t perform that action at this time.
0 commit comments