summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-28 13:59:11 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-07-28 13:59:40 +0200
commit2d69464846e6e1a7c59f78d894d8801ff82c5929 (patch)
tree20d61f94f8df9b6f90cebf901b171cf563216d39 /examples
parent2796a6bc974d847580ab23c6a5f58db994883ec5 (diff)
downloadiced-2d69464846e6e1a7c59f78d894d8801ff82c5929.tar.gz
iced-2d69464846e6e1a7c59f78d894d8801ff82c5929.tar.bz2
iced-2d69464846e6e1a7c59f78d894d8801ff82c5929.zip
Make `markdown::parse` take a `Palette` value
Diffstat (limited to '')
-rw-r--r--examples/markdown/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs
index efe5b324..173cb389 100644
--- a/examples/markdown/src/main.rs
+++ b/examples/markdown/src/main.rs
@@ -28,7 +28,7 @@ impl Markdown {
(
Self {
content: text_editor::Content::with_text(INITIAL_CONTENT),
- items: markdown::parse(INITIAL_CONTENT, &theme.palette())
+ items: markdown::parse(INITIAL_CONTENT, theme.palette())
.collect(),
theme,
},
@@ -46,7 +46,7 @@ impl Markdown {
if is_edit {
self.items = markdown::parse(
&self.content.text(),
- &self.theme.palette(),
+ self.theme.palette(),
)
.collect();
}