From 6786b8a3aaf87bd9875b2253ac0986f050cc8445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Thu, 23 Apr 2020 22:17:00 +0200 Subject: [PATCH] Implement `Default` for `Font` --- core/src/font.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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 + } +}