File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ impl StreamChunks for CachedSource {
182182 dependent. cached_colomns_map . get_or_init ( || {
183183 unsafe { std:: mem:: transmute :: < Option < SourceMap > , Option < SourceMap < ' static > > > ( map) }
184184 } ) ;
185- generated_info
185+ generated_info
186186 } )
187187 } else {
188188 self . 0 . with_dependent ( |owner, dependent| {
Original file line number Diff line number Diff line change @@ -359,7 +359,14 @@ self_cell::self_cell!(
359359
360360impl Clone for StaticSourceMap {
361361 fn clone ( & self ) -> Self {
362- Self :: from_borrowed_value_cell ( self . borrow_owner ( ) . clone ( ) )
362+ Self :: new ( self . borrow_owner ( ) . clone ( ) , |_| {
363+ let dependent = self . borrow_dependent ( ) ;
364+ unsafe {
365+ std:: mem:: transmute :: < BorrowedSourceMap , BorrowedSourceMap < ' static > > (
366+ dependent. clone ( ) ,
367+ )
368+ }
369+ } )
363370 }
364371}
365372
You can’t perform that action at this time.
0 commit comments