aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-09-16 22:49:19 +0200
committerTeddy Wing2020-09-16 22:49:19 +0200
commit9b1e1480f1162b1771d8de14143b2eacb6dffddc (patch)
treea2a4060c79c2fac637a119b77eaf72543cc83f08
parentb6002fee979606986458449b8ffe6d290dbba8d1 (diff)
downloadgit-todo-9b1e1480f1162b1771d8de14143b2eacb6dffddc.tar.bz2
write_since(): Clean up `diff.foreach()` callback
* Remove commented code * Ignore unused `hunk` variable
-rw-r--r--src/lib.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4faaf20..1505711 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -32,14 +32,7 @@ impl Todos<'_> {
None,
None,
Some(
- &mut |delta, hunk, line| {
- // println!(
- // "d: {:?}, h: {:?}, l: {:?}",
- // delta,
- // hunk,
- // std::str::from_utf8(line.content()).unwrap(),
- // );
-
+ &mut |delta, _hunk, line| {
if let Some(line_number) = line.new_lineno() {
if let Ok(l) = std::str::from_utf8(line.content()) {
if l.contains("TODO") {