forked from mirrors/jj
tree: make MergedTreeVal::to_merge()
public
I don't think there's any harm in this function being public. We have a duplicate of it at Google.
This commit is contained in:
parent
ff4ea73ac0
commit
aecee1d6cc
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@ pub enum MergedTreeVal<'a> {
|
|||
}
|
||||
|
||||
impl MergedTreeVal<'_> {
|
||||
fn to_merge(&self) -> MergedTreeValue {
|
||||
/// Converts to an owned value.
|
||||
pub fn to_merge(&self) -> MergedTreeValue {
|
||||
match self {
|
||||
MergedTreeVal::Resolved(value) => Merge::resolved(value.cloned()),
|
||||
MergedTreeVal::Conflict(merge) => merge.clone(),
|
||||
|
|
Loading…
Reference in a new issue