From 4a6cfd144cf01f4347bb491cf200438368eeed52 Mon Sep 17 00:00:00 2001 From: jungnitz Date: Wed, 25 Dec 2024 22:30:58 +0100 Subject: [PATCH] Use $crate::Id to reference the egg::Id type in the define_language macro --- src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index ac39e2ec..3a4b68f2 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -94,8 +94,8 @@ macro_rules! __define_language { match (self, other) { $($matches)* _ => false } } - fn children(&self) -> &[Id] { match self $children } - fn children_mut(&mut self) -> &mut [Id] { match self $children_mut } + fn children(&self) -> &[$crate::Id] { match self $children } + fn children_mut(&mut self) -> &mut [$crate::Id] { match self $children_mut } } impl ::std::fmt::Display for $name {