Skip to content

Commit 35d1a09

Browse files
committed
Lint code
1 parent ba9b270 commit 35d1a09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/commands/list.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ pub fn list_path_todos(directory_path: &str) -> Vec<Todo> {
3535

3636
todos.append(&mut file_todos)
3737
}
38-
return todos
38+
todos
3939
}

src/commands/parser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use nom::{
22
bytes::complete::{take_until, tag},
3-
character::{complete::{newline, not_line_ending}},
3+
character::complete::{newline, not_line_ending},
44
combinator::opt,
55
multi::many0,
66
*,
@@ -28,7 +28,7 @@ fn parse_todo<'a>(todo_tag: &'a str, input: &'a str) -> IResult<&'a str, Todo> {
2828
}))
2929
}
3030

31-
fn parse_todos<'a>(file_content: &'a str) -> IResult<&'a str, Vec<Todo>> {
31+
fn parse_todos(file_content: &str) -> IResult<&str, Vec<Todo>> {
3232
let line_parser = | file_content | parse_todo("TODO:", file_content);
3333
let (input, todos) = many0(line_parser)(file_content)?;
3434
Ok((input, todos))

0 commit comments

Comments
 (0)