summaryrefslogtreecommitdiffstats
path: root/native/src/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2021-12-13 15:36:15 +0700
committerLibravatar GitHub <noreply@github.com>2021-12-13 15:36:15 +0700
commite24eaa7c665f6b73aa4e9bac4b723cd8d24b78e1 (patch)
treec94edd5f2ffbabfe8dcd56ab3933f5aabc2ecd83 /native/src/text.rs
parentbc15bfdb67394eb6eaaacec96d919f0f6cfe4efb (diff)
parentd06e6bfb5111c1f2d2fd43c10a0c69870539742f (diff)
downloadiced-e24eaa7c665f6b73aa4e9bac4b723cd8d24b78e1.tar.gz
iced-e24eaa7c665f6b73aa4e9bac4b723cd8d24b78e1.tar.bz2
iced-e24eaa7c665f6b73aa4e9bac4b723cd8d24b78e1.zip
Merge pull request #1155 from AlisCode/refactor/decouple_image
Decouple `image::Handle` from `iced_native` and lower trait bound on `text::Renderer::Font`
Diffstat (limited to 'native/src/text.rs')
-rw-r--r--native/src/text.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/text.rs b/native/src/text.rs
index 8b9205e3..256a9c5a 100644
--- a/native/src/text.rs
+++ b/native/src/text.rs
@@ -57,7 +57,7 @@ impl Hit {
/// A renderer capable of measuring and drawing [`Text`].
pub trait Renderer: crate::Renderer {
/// The font type used.
- type Font: Default + Copy;
+ type Font: Default + Clone;
/// The icon font of the backend.
const ICON_FONT: Self::Font;