Make code more legible
This commit is contained in:
parent
94ffc054a7
commit
b02ee12aaa
1 changed files with 10 additions and 6 deletions
|
@ -43,13 +43,17 @@ impl<'a> Document<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Data::PatchExpression(v) => self.current.to_mut().patch(ctx, opt, txn, v).await?,
|
Data::PatchExpression(data) => {
|
||||||
Data::MergeExpression(v) => self.current.to_mut().merge(ctx, opt, txn, v).await?,
|
self.current.to_mut().patch(ctx, opt, txn, data).await?
|
||||||
Data::ReplaceExpression(v) => {
|
|
||||||
self.current.to_mut().replace(ctx, opt, txn, v).await?
|
|
||||||
}
|
}
|
||||||
Data::ContentExpression(v) => {
|
Data::MergeExpression(data) => {
|
||||||
self.current.to_mut().replace(ctx, opt, txn, v).await?
|
self.current.to_mut().merge(ctx, opt, txn, data).await?
|
||||||
|
}
|
||||||
|
Data::ReplaceExpression(data) => {
|
||||||
|
self.current.to_mut().replace(ctx, opt, txn, data).await?
|
||||||
|
}
|
||||||
|
Data::ContentExpression(data) => {
|
||||||
|
self.current.to_mut().replace(ctx, opt, txn, data).await?
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue