File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pub struct HeaderLine<'ln> {
1111 pub dejagnu_header : String ,
1212}
1313
14- pub fn parse_additional_options ( code : & str ) -> Vec < HeaderLine > {
14+ pub fn parse_additional_options ( code : & str ) -> Vec < HeaderLine < ' _ > > {
1515 let mut headers = Vec :: new ( ) ;
1616
1717 for ( line_number, line) in code. lines ( ) . enumerate ( ) {
@@ -32,7 +32,7 @@ pub fn is_header_line(line: &str) -> bool {
3232 line. trim_start ( ) . starts_with ( "//@" )
3333}
3434
35- fn add_additional_options ( code : & str , line_number : usize ) -> Option < HeaderLine > {
35+ fn add_additional_options ( code : & str , line_number : usize ) -> Option < HeaderLine < ' _ > > {
3636 //TODO: If we know the file extension, then update this to
3737 // let comment = if testfile.extension().is_some_and(|e| e == "rs") { "//@" } else { "#" };
3838 let comment = "//@" ;
You can’t perform that action at this time.
0 commit comments