mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-01 00:50:57 +00:00
conflicts: make materialize_merge_result() accept reference type
Because the output of diff.hunks() is a list of [&BStr]s, a Merge object reconstructed from a diff hunk will be Merge<&BStr>. I'm not pretty sure if we'll implement conflict diffs in that way, but this change should be harmless anyway.
This commit is contained in:
parent
2aa913b035
commit
4cdead34b4
1 changed files with 2 additions and 2 deletions
|
@ -232,8 +232,8 @@ async fn materialize_tree_value_no_access_denied(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn materialize_merge_result(
|
pub fn materialize_merge_result<T: AsRef<[u8]>>(
|
||||||
single_hunk: &Merge<BString>,
|
single_hunk: &Merge<T>,
|
||||||
output: &mut dyn Write,
|
output: &mut dyn Write,
|
||||||
) -> io::Result<()> {
|
) -> io::Result<()> {
|
||||||
let merge_result = files::merge(single_hunk);
|
let merge_result = files::merge(single_hunk);
|
||||||
|
|
Loading…
Reference in a new issue