From bca836c82a023788c9d19757f4091b53cdb61b2a Mon Sep 17 00:00:00 2001 From: Dipsy Date: Tue, 6 Feb 2024 14:19:20 +0000 Subject: [PATCH] fix misleading line break in config loading --- helix-term/src/config.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helix-term/src/config.rs b/helix-term/src/config.rs index cbad357fb..8b10c5bdb 100644 --- a/helix-term/src/config.rs +++ b/helix-term/src/config.rs @@ -87,8 +87,7 @@ impl Config { // Load and parse global config returning all errors let global: ConfigRaw = fs::read_to_string(helix_loader::config_file()) .map_err(ConfigLoadError::Error) - .and_then(|c| toml::from_str(&c) - .map_err(ConfigLoadError::BadConfig))?; + .and_then(|c| toml::from_str(&c).map_err(ConfigLoadError::BadConfig))?; // Load and parse workspace config if enabled ignoring IO errors let workspace = global.workspace_config.unwrap_or(false)