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
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ where
|
|||
S: serde::de::SeqAccess<'de>,
|
||||
{
|
||||
let mut gutters = Vec::new();
|
||||
while let Some(gutter) = seq.next_element::<&str>()? {
|
||||
while let Some(gutter) = seq.next_element::<String>()? {
|
||||
gutters.push(
|
||||
gutter
|
||||
.parse::<GutterType>()
|
||||
|
|
Loading…
Add table
Reference in a new issue