Showing the changes to git-diff/tests (1 of 5 files). Show all
Unified · Split
| @@ -41,14 +41,12 @@ mod with_tree { · 40 unmodified lines | ||
| 41 | 41 | .and_then(|tree| tree.into_tree()) |
| 42 | 42 | }; |
| 43 | 43 | |
| 44 | − let (mut buf3, mut buf4) = (Vec::new(), Vec::new()); | |
| 45 | − git_diff::tree::Changes::from(previous_tree.as_ref()).to_obtain( | |
| 44 | + git_diff::tree::VisitChanges::from(previous_tree.as_ref()).to_obtain( | |
| 46 | 45 | &main_tree, |
| 47 | − (&mut buf3, &mut buf4), | |
| 46 | + &mut git_diff::tree::State::default(), | |
| 48 | 47 | |_oid, _buf| todo!("Actual lookup in db"), |
| 49 | − &mut git_diff::tree::PathTree::default(), | |
| 50 | − &mut Vec::new(), | |
| 51 | − ); | |
| 48 | + &mut git_diff::tree::delegate::Recorder::default(), | |
| 49 | + )?; | |
| 52 | 50 | Ok(()) |
| 53 | 51 | } |
| 54 | 52 | #[test] |