File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ impl<'a> Iterator for Lines<'a> {
142142pub struct SourceView < ' a > {
143143 source : Cow < ' a , str > ,
144144 processed_until : AtomicUsize ,
145- lines : Mutex < Vec < & ' a str > > ,
145+ lines : Mutex < Vec < & ' static str > > ,
146146}
147147
148148impl < ' a > Clone for SourceView < ' a > {
Original file line number Diff line number Diff line change @@ -741,7 +741,6 @@ impl SourceMap {
741741 self . sources_content
742742 . get ( idx as usize )
743743 . and_then ( Option :: as_ref)
744- . and_then ( |v| unsafe { std:: mem:: transmute ( v) } )
745744 }
746745
747746 /// Looks up the content for a source.
@@ -1142,12 +1141,12 @@ impl SourceMapIndex {
11421141 /// functions that do not have clear function names. (For instance it's
11431142 /// recommended that dotted function names are not passed to this
11441143 /// function).
1145- pub fn get_original_function_name < ' a > (
1144+ pub fn get_original_function_name (
11461145 & self ,
11471146 line : u32 ,
11481147 col : u32 ,
11491148 minified_name : & str ,
1150- sv : & ' a SourceView < ' a > ,
1149+ sv : & SourceView ,
11511150 ) -> Option < & str > {
11521151 self . lookup_token ( line, col)
11531152 . and_then ( |token| sv. get_original_function_name ( token, minified_name) )
You can’t perform that action at this time.
0 commit comments