Skip to content

Commit 57c8e53

Browse files
committed
chore: remove unless change
1 parent cc8ac4d commit 57c8e53

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/sourceview.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl<'a> Iterator for Lines<'a> {
142142
pub 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

148148
impl<'a> Clone for SourceView<'a> {

src/types.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)