diff --git a/src/main.rs b/src/main.rs index 24f40fd..8655505 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,10 +57,8 @@ fn get_todos(path: &str, todos: &mut Vec) -> Result<(), std::io::Error> for line in contents.lines() { if line.contains("TODO") { let (_, comment) = line.split_once("TODO").unwrap(); - let cleaned_comment = comment.replace(":", "") - .trim() - .to_owned(); - todos.push(cleaned_comment.to_owned()) + let cleaned_comment = comment.replace(":", "").trim().to_owned(); + todos.push(cleaned_comment) } }