diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-07 10:50:39 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-07 11:07:00 +0200 |
| commit | 3d52387eea321e94c13b61666f7a758052b20c5d (patch) | |
| tree | 5c55c51ca7e4b53dee61d280c39b7f664b8b9d6b /src/library/graphics | |
| parent | 20b4d590b3efbd9b7a44fd6d3a658e7b84d21b99 (diff) | |
Rework style chains
Diffstat (limited to 'src/library/graphics')
| -rw-r--r-- | src/library/graphics/image.rs | 2 | ||||
| -rw-r--r-- | src/library/graphics/shape.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/library/graphics/image.rs b/src/library/graphics/image.rs index d11de9d1..23ad52ab 100644 --- a/src/library/graphics/image.rs +++ b/src/library/graphics/image.rs @@ -82,7 +82,7 @@ impl Layout for ImageNode { } // Apply link if it exists. - if let Some(url) = styles.get_ref(TextNode::LINK) { + if let Some(url) = styles.get(TextNode::LINK) { frame.link(url); } diff --git a/src/library/graphics/shape.rs b/src/library/graphics/shape.rs index 9f9ff889..177f466e 100644 --- a/src/library/graphics/shape.rs +++ b/src/library/graphics/shape.rs @@ -132,7 +132,7 @@ impl<const S: ShapeKind> Layout for ShapeNode<S> { } // Apply link if it exists. - if let Some(url) = styles.get_ref(TextNode::LINK) { + if let Some(url) = styles.get(TextNode::LINK) { frame.link(url); } |
