summaryrefslogtreecommitdiff
path: root/src/syntax/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-12-05 20:29:55 +0100
committerLaurenz <laurmaedje@gmail.com>2019-12-05 20:29:55 +0100
commitf5b104d0da1c414fb59878d7378add316ee14798 (patch)
tree56968591bd997aa78cb8690da318ee97a822f2a9 /src/syntax/mod.rs
parent72a9631b038d1a60e4e4a78e92cd69e6f8ce4316 (diff)
Rename crate `typst` -> `typstc` ✏
Diffstat (limited to 'src/syntax/mod.rs')
-rw-r--r--src/syntax/mod.rs6
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
}
}