diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-02-02 16:02:23 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-02-02 16:02:23 +0100 |
| commit | a7b403fd742941f6b163f06876aec96729db707f (patch) | |
| tree | b5062eddbcb814713b65f59d3f59dfe7e2bcaca8 /src/library/pad.rs | |
| parent | 0a1916c1e4259aff1306b26c06d4edcf0f190a3b (diff) | |
Rename `Node` to `Template`
Diffstat (limited to 'src/library/pad.rs')
| -rw-r--r-- | src/library/pad.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/pad.rs b/src/library/pad.rs index 8bfc6d17..af570659 100644 --- a/src/library/pad.rs +++ b/src/library/pad.rs @@ -2,7 +2,7 @@ use super::prelude::*; -/// Pad content at the sides. +/// Pad a node at the sides. #[derive(Debug, Hash)] pub struct PadNode { /// The amount of padding. @@ -13,7 +13,7 @@ pub struct PadNode { #[class] impl PadNode { - fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Node> { + fn construct(_: &mut EvalContext, args: &mut Args) -> TypResult<Template> { let all = args.find(); let left = args.named("left")?; let top = args.named("top")?; @@ -27,7 +27,7 @@ impl PadNode { bottom.or(all).unwrap_or_default(), ); - Ok(Node::block(body.padded(padding))) + Ok(Template::block(body.padded(padding))) } } |
