diff options
Diffstat (limited to 'src/syntax/mod.rs')
| -rw-r--r-- | src/syntax/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index 21088b83..a3fe06bd 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -91,13 +91,11 @@ pub enum Node { /// An invocation of a function. #[derive(Debug)] -pub struct FuncCall { - pub call: Box<dyn LayoutFunc>, -} +pub struct FuncCall(pub Box<dyn LayoutFunc>); impl PartialEq for FuncCall { fn eq(&self, other: &FuncCall) -> bool { - &self.call == &other.call + &self.0 == &other.0 } } |
