summaryrefslogtreecommitdiffstats
path: root/src/settings.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 18:31:07 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-09 18:31:07 +0100
commit7b278755fc7929633b5771824beac4d39b16e82e (patch)
treefe3a8a6b0ae82f7fd1fa0c0de34b4b09d0b9edda /src/settings.rs
parent775500cf1f5a14afacdc0bb6875136a4fd3369a4 (diff)
downloadiced-7b278755fc7929633b5771824beac4d39b16e82e.tar.gz
iced-7b278755fc7929633b5771824beac4d39b16e82e.tar.bz2
iced-7b278755fc7929633b5771824beac4d39b16e82e.zip
Write missing docs and reenable deny statements
Diffstat (limited to 'src/settings.rs')
-rw-r--r--src/settings.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/settings.rs b/src/settings.rs
index b725ef9f..e20edc97 100644
--- a/src/settings.rs
+++ b/src/settings.rs
@@ -1,7 +1,7 @@
//! Configure your application.
/// The settings of an application.
-#[derive(Debug, Clone, Copy, PartialEq)]
+#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub struct Settings {
/// The [`Window`] settings.
///
@@ -10,19 +10,13 @@ pub struct Settings {
/// [`Window`]: struct.Window.html
pub window: Window,
+ /// The bytes of the font that will be used by default.
+ ///
+ /// If `None` is provided, a default system font will be chosen.
// TODO: Add `name` for web compatibility
pub default_font: Option<&'static [u8]>,
}
-impl Default for Settings {
- fn default() -> Settings {
- Settings {
- window: Window::default(),
- default_font: None,
- }
- }
-}
-
/// The window settings of an application.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Window {