Nevermind, it did work.

This commit is contained in:
Tom Alexander
2023-10-11 14:03:42 -04:00
parent a89339e472
commit 78a9b93f22
2 changed files with 15 additions and 9 deletions

View File

@@ -331,6 +331,17 @@ pub(crate) fn artificial_diff_scope<'b, 's>(
.into())
}
pub(crate) fn artificial_owned_diff_scope<'b, 's, 'x>(
name: &'x str,
children: Vec<DiffEntry<'b, 's>>,
) -> Result<DiffEntry<'b, 's>, Box<dyn std::error::Error>> {
Ok(DiffLayer {
name: name.to_string().into(),
children,
}
.into())
}
pub(crate) fn compare_ast_node<'b, 's>(
source: &'s str,
emacs: &'b Token<'s>,