diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-03 16:50:26 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-03 16:50:26 +0100 |
| commit | 33928a00dc58250e24da1dae4e5db17e7b598d70 (patch) | |
| tree | 451083aa64f57b442359875b0415541463cb1a0c /library/src/text/deco.rs | |
| parent | 46921a8c283718402322d4d09c0bd1d9194278b1 (diff) | |
Tidy up library
Diffstat (limited to 'library/src/text/deco.rs')
| -rw-r--r-- | library/src/text/deco.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/text/deco.rs b/library/src/text/deco.rs index cd3acef5..aaf6cfa8 100644 --- a/library/src/text/deco.rs +++ b/library/src/text/deco.rs @@ -70,7 +70,7 @@ impl<const L: DecoLine> Show for DecoNode<L> { /// /// For more details, see [`DecoNode`]. #[derive(Debug, Clone, Eq, PartialEq, Hash)] -pub struct Decoration { +pub(super) struct Decoration { pub line: DecoLine, pub stroke: PartialStroke<Abs>, pub offset: Smart<Abs>, @@ -91,7 +91,7 @@ pub const STRIKETHROUGH: DecoLine = 1; pub const OVERLINE: DecoLine = 2; /// Add line decorations to a single run of shaped text. -pub fn decorate( +pub(super) fn decorate( frame: &mut Frame, deco: &Decoration, text: &Text, |
