--- a/helix-term/src/config.rs +++ b/helix-term/src/config.rs @@ -58,12 +58,11 @@ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { impl Config { pub fn load( global: Result, - local: Result, + _local: Result, ) -> Result { let global_config: Result = global.and_then(|file| toml::from_str(&file).map_err(ConfigLoadError::BadConfig)); - let local_config: Result = - local.and_then(|file| toml::from_str(&file).map_err(ConfigLoadError::BadConfig)); + let local_config: Result = Err(ConfigLoadError::default()); let res = match (global_config, local_config) { (Ok(global), Ok(local)) => { let mut keys = keymap::default();