diff options
Diffstat (limited to 'helix-core/src/syntax.rs')
-rw-r--r-- | helix-core/src/syntax.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index 3b2d56d1..3fc91efc 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -216,14 +216,7 @@ impl FromStr for AutoPairConfig { // only do bool parsing for runtime setting fn from_str(s: &str) -> Result<Self, Self::Err> { let enable: bool = s.parse()?; - - let enable = if enable { - AutoPairConfig::Enable(true) - } else { - AutoPairConfig::Enable(false) - }; - - Ok(enable) + Ok(AutoPairConfig::Enable(enable)) } } |