@@ -79,43 +79,18 @@ impl Compiler {
79
79
let has_glob = import_base_str. find ( '*' ) . is_some ( ) ;
80
80
81
81
if has_glob {
82
- let walker = globwalk:: glob_builder ( import_base_str)
83
- . build ( )
84
- . map_err ( |_err| Error :: ImportGlob {
85
- error : "FIX ERR" . to_string ( ) ,
86
- path : * path,
87
- } ) ?;
88
- for maybe_entry in walker {
89
- let Ok ( entry) = maybe_entry else { continue } ;
90
- let import = entry. path ( ) . to_owned ( ) ;
91
- println ! ( "IMPORT: {}" , import. display( ) ) ;
92
-
93
- if import. is_file ( ) {
94
- if current. file_path . contains ( & import) {
95
- return Err ( Error :: CircularImport {
96
- current : current. path ,
97
- import,
98
- } ) ;
99
- }
100
- absolute_paths. push ( import. clone ( ) ) ;
101
- stack. push ( current. import ( import, path. offset ) ) ;
102
- }
103
- }
104
-
105
- /*
106
- let glob = globset::Glob::new(&import_base_str).map_err(|_err|
107
- Error::ImportGlob { error: "FIX ERR".to_string(), path: *path }
108
- )?.compile_matcher();
109
- */
110
- /*
111
-
112
82
let glob_options = glob:: MatchOptions {
113
83
case_sensitive : true ,
114
84
require_literal_separator : false ,
115
85
require_literal_leading_dot : false ,
116
86
} ;
117
- let import_paths = glob::glob_with(&import_base_str, glob_options)
118
- .map_err(|error| Error::ImportGlob { error, path: *path })?;
87
+ let import_paths =
88
+ glob:: glob_with ( & import_base_str, glob_options) . map_err ( |error| {
89
+ Error :: ImportGlob {
90
+ error : error. to_string ( ) ,
91
+ path : * path,
92
+ }
93
+ } ) ?;
119
94
for import in import_paths {
120
95
let Ok ( import) = import else { continue } ;
121
96
@@ -130,7 +105,6 @@ impl Compiler {
130
105
stack. push ( current. import ( import, path. offset ) ) ;
131
106
}
132
107
}
133
- */
134
108
} else if import. is_file ( ) {
135
109
if current. file_path . contains ( & import) {
136
110
return Err ( Error :: CircularImport {
0 commit comments