diff options
Diffstat (limited to 'library/src/math')
| -rw-r--r-- | library/src/math/mod.rs | 6 |
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()) } } |
