mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
Parse gutter-types as Strings (#5696)
This is necessary for configurations like: [editor] gutters = ["diagnostics", "line-numbers"] after the toml 0.6.0 dependency update.
This commit is contained in:
parent
291f39d66b
commit
4d548a0ee3
@ -125,7 +125,7 @@ fn visit_seq<S>(self, mut seq: S) -> Result<Self::Value, S::Error>
|
|||||||
S: serde::de::SeqAccess<'de>,
|
S: serde::de::SeqAccess<'de>,
|
||||||
{
|
{
|
||||||
let mut gutters = Vec::new();
|
let mut gutters = Vec::new();
|
||||||
while let Some(gutter) = seq.next_element::<&str>()? {
|
while let Some(gutter) = seq.next_element::<String>()? {
|
||||||
gutters.push(
|
gutters.push(
|
||||||
gutter
|
gutter
|
||||||
.parse::<GutterType>()
|
.parse::<GutterType>()
|
||||||
|
Loading…
Reference in New Issue
Block a user