File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -174,11 +174,6 @@ The name of the package metadata file.
174
174
*/
175
175
pub const METADATA_FILE : & str = "metadata.json" ;
176
176
177
- /**
178
- Extensions to check when trying to find script input by name.
179
- */
180
- pub const SEARCH_EXTS : & [ & str ] = & [ "ers" , "rs" ] ;
181
-
182
177
/**
183
178
When generating a package's unique ID, how many hex nibbles of the digest should be used *at most*?
184
179
Original file line number Diff line number Diff line change @@ -951,7 +951,7 @@ where
951
951
}
952
952
953
953
// Ok, now try other extensions.
954
- for & ext in consts :: SEARCH_EXTS {
954
+ for & ext in & [ "ers" , "rs" ] {
955
955
let path = path. with_extension ( ext) ;
956
956
if let Ok ( file) = fs:: File :: open ( & path) {
957
957
return Some ( ( path, file) ) ;
You can’t perform that action at this time.
0 commit comments