diff options
author | Christian Duerr <contact@christianduerr.com> | 2018-03-09 23:02:45 +0100 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2018-06-02 09:46:20 -0700 |
commit | a238e9ac5832cb9a40f886a3b873728cd7890d01 (patch) | |
tree | e078fc74f03e5ad56d33f9bd9897a87d1912f06b /src/config.rs | |
parent | d3f64072f3fe4d31f7a60eb0cb17a98096617b4b (diff) | |
download | alacritty-a238e9ac5832cb9a40f886a3b873728cd7890d01.tar.gz alacritty-a238e9ac5832cb9a40f886a3b873728cd7890d01.zip |
Fix linux config default value
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/config.rs b/src/config.rs index 8e531a9c..e7f1b587 100644 --- a/src/config.rs +++ b/src/config.rs @@ -385,18 +385,6 @@ pub struct Config { scrolling: Scrolling, } -fn deserialize_scroll_history<'a, D>(deserializer: D) -> ::std::result::Result<u32, D::Error> - where D: de::Deserializer<'a> -{ - match u32::deserialize(deserializer) { - Ok(lines) => Ok(lines), - Err(err) => { - eprintln!("problem with config: {}; Using default value", err); - Ok(default_scroll_history()) - }, - } -} - fn failure_default_vec<'a, D, T>(deserializer: D) -> ::std::result::Result<Vec<T>, D::Error> where D: de::Deserializer<'a>, T: Deserialize<'a> |