From d06e6bfb5111c1f2d2fd43c10a0c69870539742f Mon Sep 17 00:00:00 2001 From: Olivier Pinon Date: Fri, 10 Dec 2021 22:53:00 +0100 Subject: Lower text::Renderer's Font bound from Copy to Clone --- native/src/widget/checkbox.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'native/src/widget/checkbox.rs') diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs index 2af2d60c..5a8dbc83 100644 --- a/native/src/widget/checkbox.rs +++ b/native/src/widget/checkbox.rs @@ -157,7 +157,7 @@ where ) .push( Text::new(&self.label) - .font(self.font) + .font(self.font.clone()) .width(self.width) .size(self.text_size.unwrap_or(renderer.default_size())), ) @@ -261,7 +261,7 @@ where style, label_layout, &self.label, - self.font, + self.font.clone(), self.text_size, self.text_color.or(Some(custom_style.text_color)), alignment::Horizontal::Left, -- cgit