Skip to content

Commit 254255e

Browse files
MahadMuhammadCohenArthur
authored andcommitted
Fix lifetime parameter in HeaderLine type
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
1 parent 2aa5f21 commit 254255e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/header.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 = "//@";

0 commit comments

Comments
 (0)