summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-23 22:17:00 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-23 22:17:00 +0200
commit6786b8a3aaf87bd9875b2253ac0986f050cc8445 (patch)
treedca2e54027f877b4124c4ffc88401fca727f32fc /core
parent3375824630949f4a2e9b532ef8ad8de0458a8541 (diff)
downloadiced-6786b8a3aaf87bd9875b2253ac0986f050cc8445.tar.gz
iced-6786b8a3aaf87bd9875b2253ac0986f050cc8445.tar.bz2
iced-6786b8a3aaf87bd9875b2253ac0986f050cc8445.zip
Implement `Default` for `Font`
Diffstat (limited to 'core')
-rw-r--r--core/src/font.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/font.rs b/core/src/font.rs
index be49c825..3f9ad2b5 100644
--- a/core/src/font.rs
+++ b/core/src/font.rs
@@ -16,3 +16,9 @@ pub enum Font {
bytes: &'static [u8],
},
}
+
+impl Default for Font {
+ fn default() -> Font {
+ Font::Default
+ }
+}