diff options
Diffstat (limited to 'src/document/at.rs')
| -rw-r--r-- | src/document/at.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document/at.rs b/src/document/at.rs index d318f17..2d35736 100644 --- a/src/document/at.rs +++ b/src/document/at.rs @@ -23,7 +23,7 @@ impl<'a> At<'a> { pub(crate) fn new(doc: &'a Document, heads: &[ChangeHash]) -> Option<Self> { heads .iter() - .all(|head| doc.get_change_by_hash(head).is_some()) + .all(|head| crate::document::changes::holds(doc, head)) .then(|| Self { doc, heads: heads.to_vec(), |
