@@ -256,9 +256,9 @@ where
256256 }
257257}
258258
259- pub ( crate ) enum SourceContext < ' a > {
259+ pub ( crate ) enum SourceContext {
260260 Standalone ,
261- Embedded { url : & ' a str , offset : usize , needs_expansion : bool } ,
261+ Embedded { offset : usize , needs_expansion : bool } ,
262262}
263263
264264/// Wrapper struct to render the source code of a file. This will do things like
@@ -270,7 +270,7 @@ pub(crate) fn print_src(
270270 context : & Context < ' _ > ,
271271 root_path : & str ,
272272 decoration_info : highlight:: DecorationInfo ,
273- source_context : SourceContext < ' _ > ,
273+ source_context : SourceContext ,
274274) {
275275 let lines = s. lines ( ) . count ( ) ;
276276 let mut line_numbers = Buffer :: empty_from ( buf) ;
@@ -286,12 +286,12 @@ pub(crate) fn print_src(
286286 writeln ! ( line_numbers, "<a href=\" #{line}\" id=\" {line}\" >{line}</a>" )
287287 }
288288 }
289- SourceContext :: Embedded { url , offset, needs_expansion } => {
289+ SourceContext :: Embedded { offset, needs_expansion } => {
290290 extra =
291291 if needs_expansion { Some ( r#"<span class="expand">↕</span>"# ) } else { None } ;
292292 for line_number in 1 ..=lines {
293293 let line = line_number + offset;
294- writeln ! ( line_numbers, "<a href= \" {root_path}{url}#{line} \" >{line}</a >" )
294+ writeln ! ( line_numbers, "<span >{line}</span >" )
295295 }
296296 }
297297 }
0 commit comments