Upgrade toml
to v0.8 (#7931)
This PR upgrades our `toml` dependency to v0.8. I noticed that our current version of `toml` wasn't able to parse certain kinds of documents involving enums, whereas the newer version can. Release Notes: - N/A
This commit is contained in:
parent
f82b2741cd
commit
3cbc18895a
4 changed files with 72 additions and 22 deletions
|
@ -415,8 +415,8 @@ impl ExtensionStore {
|
|||
language.matcher.clone(),
|
||||
vec![],
|
||||
move || {
|
||||
let config = std::fs::read(language_path.join("config.toml"))?;
|
||||
let config: LanguageConfig = ::toml::from_slice(&config)?;
|
||||
let config = std::fs::read_to_string(language_path.join("config.toml"))?;
|
||||
let config: LanguageConfig = ::toml::from_str(&config)?;
|
||||
let queries = load_plugin_queries(&language_path);
|
||||
Ok((config, queries))
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue