diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-11-18 23:05:38 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-18 23:05:38 +0000 |
commit | e429b8dfdda3228838cd839783d17376a65b44fe (patch) | |
tree | cf152b28faba4499633390464aabf3b3a3a58a31 /src | |
parent | e72a649794069ef15773b72eabdcfc8d525289d0 (diff) | |
download | alacritty-e429b8dfdda3228838cd839783d17376a65b44fe.tar.gz alacritty-e429b8dfdda3228838cd839783d17376a65b44fe.zip |
Remove `scale_with_dpi` setting from config
Since the `scale_with_dpi` setting has been deprecated, but it hasn't
been removed from the config, Alacritty would print an error every time
it is started.
To resolve this problem, the option is removed from the default
configuration file.
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/config.rs b/src/config.rs index ae1ec897..2028132f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1894,16 +1894,10 @@ fn deserialize_scale_with_dpi<'a, D>(deserializer: D) -> ::std::result::Result<O where D: de::Deserializer<'a>, { - use ::util::fmt; // This is necessary in order to get serde to complete deserialization of the configuration let _ignored = bool::deserialize(deserializer); - eprintln!( - "{}", - fmt::Yellow( - "The `scale_with_dpi` setting has been removed, \ - on X11 the WINIT_HIDPI_FACTOR environment variable can be used instead." - ) - ); + error!("The `scale_with_dpi` setting has been removed, \ + on X11 the WINIT_HIDPI_FACTOR environment variable can be used instead."); Ok(None) } |