diff options
| author | Teddy Wing | 2020-09-16 22:49:19 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2020-09-16 22:49:19 +0200 | 
| commit | 9b1e1480f1162b1771d8de14143b2eacb6dffddc (patch) | |
| tree | a2a4060c79c2fac637a119b77eaf72543cc83f08 /src | |
| parent | b6002fee979606986458449b8ffe6d290dbba8d1 (diff) | |
| download | git-todo-9b1e1480f1162b1771d8de14143b2eacb6dffddc.tar.bz2 | |
write_since(): Clean up `diff.foreach()` callback
* Remove commented code
* Ignore unused `hunk` variable
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 9 | 
1 files changed, 1 insertions, 8 deletions
| @@ -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") { | 
