summaryrefslogtreecommitdiff
path: root/library/src/math/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-01-15 12:00:13 +0100
committerLaurenz <laurmaedje@gmail.com>2023-01-15 12:40:27 +0100
commit40561e57fbbc68becac07acd54a34f94f591f277 (patch)
tree9e3401f987f1b19ef30162ac00395b7bbba871c6 /library/src/math/mod.rs
parent15f0434d1fdd03bc84cacaf6a39ac294a0c75789 (diff)
Remove most fields from `SyntaxKind` enum
Diffstat (limited to 'library/src/math/mod.rs')
-rw-r--r--library/src/math/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs
index 62afe573..52cddc9f 100644
--- a/library/src/math/mod.rs
+++ b/library/src/math/mod.rs
@@ -637,12 +637,12 @@ impl Texify for ScriptNode {
#[func]
#[capable(Texify)]
#[derive(Debug, Hash)]
-pub struct AlignPointNode(pub NonZeroUsize);
+pub struct AlignPointNode;
#[node]
impl AlignPointNode {
- fn construct(_: &Vm, args: &mut Args) -> SourceResult<Content> {
- Ok(Self(args.expect("index")?).pack())
+ fn construct(_: &Vm, _: &mut Args) -> SourceResult<Content> {
+ Ok(Self.pack())
}
}