summaryrefslogtreecommitdiff
path: root/src/library/structure
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/structure')
-rw-r--r--src/library/structure/list.rs6
-rw-r--r--src/library/structure/table.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/library/structure/list.rs b/src/library/structure/list.rs
index 532ec625..c58e8648 100644
--- a/src/library/structure/list.rs
+++ b/src/library/structure/list.rs
@@ -34,11 +34,11 @@ impl<const L: ListKind> ListNode<L> {
#[property(referenced)]
pub const LABEL: Label = Label::Default;
/// The spacing between the list items of a non-wide list.
- pub const SPACING: Relative = Relative::zero();
+ pub const SPACING: Relative<Length> = Relative::zero();
/// The indentation of each item's label.
- pub const INDENT: Relative = Ratio::new(0.0).into();
+ pub const INDENT: Relative<Length> = Ratio::new(0.0).into();
/// The space between the label and the body of each item.
- pub const BODY_INDENT: Relative = Ratio::new(0.5).into();
+ pub const BODY_INDENT: Relative<Length> = Ratio::new(0.5).into();
/// The extra padding above the list.
pub const ABOVE: Length = Length::zero();
/// The extra padding below the list.
diff --git a/src/library/structure/table.rs b/src/library/structure/table.rs
index 9317e43f..e01ae908 100644
--- a/src/library/structure/table.rs
+++ b/src/library/structure/table.rs
@@ -23,7 +23,7 @@ impl TableNode {
/// The stroke's thickness.
pub const THICKNESS: Length = Length::pt(1.0);
/// How much to pad the cells's content.
- pub const PADDING: Relative = Length::pt(5.0).into();
+ pub const PADDING: Relative<Length> = Length::pt(5.0).into();
fn construct(_: &mut Context, args: &mut Args) -> TypResult<Content> {
let columns = args.named("columns")?.unwrap_or_default();