File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
turbopack-core/src/source_map Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1- #[ cfg( not( target_os = "windows" ) ) ]
2- use std:: path:: PathBuf ;
31use std:: {
42 io:: { self , ErrorKind } ,
5- path:: Path ,
3+ path:: { Path , PathBuf } ,
64} ;
75
86use anyhow:: { Context , Result , anyhow} ;
Original file line number Diff line number Diff line change @@ -260,16 +260,12 @@ where
260260 Ok ( ( ) )
261261 } ;
262262
263- for src in map. sources . iter_mut ( ) . flatten ( ) {
264- if let Some ( src) = src {
265- apply_transform ( src) ?;
266- }
263+ for src in map. sources . iter_mut ( ) . flatten ( ) . flatten ( ) {
264+ apply_transform ( src) ?;
267265 }
268266 for section in map. sections . iter_mut ( ) . flatten ( ) {
269- for src in section. map . sources . iter_mut ( ) . flatten ( ) {
270- if let Some ( src) = src {
271- apply_transform ( src) ?;
272- }
267+ for src in section. map . sources . iter_mut ( ) . flatten ( ) . flatten ( ) {
268+ apply_transform ( src) ?;
273269 }
274270 }
275271
You can’t perform that action at this time.
0 commit comments