diff options
author | 2020-07-01 22:44:48 +0200 | |
---|---|---|
committer | 2020-07-01 22:44:48 +0200 | |
commit | 3f44d331d9c7afe14416130f54abd2b327a686bf (patch) | |
tree | fa68d060aabedda82c268a4cc06c501cbf1e626b /web/src/widget/checkbox.rs | |
parent | 99a50d6b2ff2c54c276d3a142071bd77ac38e4f0 (diff) | |
parent | 75464ad89422884e0718eb0429586a9d77f61c71 (diff) | |
download | iced-3f44d331d9c7afe14416130f54abd2b327a686bf.tar.gz iced-3f44d331d9c7afe14416130f54abd2b327a686bf.tar.bz2 iced-3f44d331d9c7afe14416130f54abd2b327a686bf.zip |
Merge pull request #432 from hecrj/improvement/update-dodrio
Update `dodrio` in `iced_web`
Diffstat (limited to 'web/src/widget/checkbox.rs')
-rw-r--r-- | web/src/widget/checkbox.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/src/widget/checkbox.rs b/web/src/widget/checkbox.rs index 4d0c7c17..21801e39 100644 --- a/web/src/widget/checkbox.rs +++ b/web/src/widget/checkbox.rs @@ -94,9 +94,10 @@ where style_sheet: &mut Css<'b>, ) -> dodrio::Node<'b> { use dodrio::builder::*; + use dodrio::bumpalo::collections::String; let checkbox_label = - bumpalo::format!(in bump, "{}", self.label).into_bump_str(); + String::from_str_in(&self.label, bump).into_bump_str(); let event_bus = bus.clone(); let on_toggle = self.on_toggle.clone(); @@ -107,7 +108,7 @@ where let spacing_class = style_sheet.insert(bump, css::Rule::Spacing(5)); let (label, input) = if let Some(id) = &self.id { - let id = bumpalo::format!(in bump, "{}", id).into_bump_str(); + let id = String::from_str_in(id, bump).into_bump_str(); (label(bump).attr("for", id), input(bump).attr("id", id)) } else { |