Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from toml::from_slice to toml::from_str #5659

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

pascalkuthe
Copy link
Member

Unblocks #5656

Just a small fix since that function was removed.
I found the usage of std::fs::read instead of std::fs::read_to_string odd anyway.
Sadly there is no include_str! macro so we have the conversion ourselves (not a big deal regardless).

@pascalkuthe pascalkuthe added E-easy Call for participation: Experience needed to fix: Easy / not much A-dependencies Area: Dependency S-waiting-on-review Status: Awaiting review from a maintainer. labels Jan 24, 2023
@the-mikedavis the-mikedavis changed the title switch from toml::from_slice to toml::from_str Switch from toml::from_slice to toml::from_str Jan 24, 2023
@the-mikedavis the-mikedavis merged commit e9dc9f4 into helix-editor:master Jan 24, 2023
@pascalkuthe pascalkuthe deleted the toml_update branch January 24, 2023 16:08
@poliorcetics
Copy link
Contributor

no include_str! ? Are you talking about https://doc.rust-lang.org/std/macro.include_str.html ?

Or does languages.toml accept non-UTF8 ? read_to_string is used so I suppose not ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dependencies Area: Dependency E-easy Call for participation: Experience needed to fix: Easy / not much S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants