diff options
author | 2020-04-23 22:17:00 +0200 | |
---|---|---|
committer | 2020-04-23 22:17:00 +0200 | |
commit | 6786b8a3aaf87bd9875b2253ac0986f050cc8445 (patch) | |
tree | dca2e54027f877b4124c4ffc88401fca727f32fc /core | |
parent | 3375824630949f4a2e9b532ef8ad8de0458a8541 (diff) | |
download | iced-6786b8a3aaf87bd9875b2253ac0986f050cc8445.tar.gz iced-6786b8a3aaf87bd9875b2253ac0986f050cc8445.tar.bz2 iced-6786b8a3aaf87bd9875b2253ac0986f050cc8445.zip |
Implement `Default` for `Font`
Diffstat (limited to 'core')
-rw-r--r-- | core/src/font.rs | 6 |
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 + } +} |