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

fix!: Make Key::from_str only accept Displays output #273

Merged
merged 2 commits into from
Dec 14, 2021
Merged

Conversation

epage
Copy link
Member

@epage epage commented Dec 14, 2021

I remember wanting to remove this before and had problems. It looks
like those have since been addressed (I think with changes to repr).

Before, we were taking any string and trying to infer what its repr
would be.

Now we only parse actualy dotted keys.

This will hopefully help with rust-lang/cargo#10176

BREAKING CHANGE: Key::from_str will accept fewer values and will
return slightly different errors.

I remember wanting to remove this before and had problems.  It looks
like those have since been addressed (I think with changes to repr).

Before, we were taking any string and trying to infer what its repr
would be.

Now we only parse actualy dotted keys.

This will hopefully help with rust-lang/cargo#10176

BREAKING CHANGE: `Key::from_str` will accept fewer values and will
return slightly different errors.
@epage epage changed the title fix: Make Key::from_str only accept Displays output fix!: Make Key::from_str only accept Displays output Dec 14, 2021
@epage epage added the M-breaking-change Meta: Implementing or merging this will introduce a breaking change. label Dec 14, 2021
@epage epage merged commit eda875c into toml-rs:master Dec 14, 2021
@epage epage deleted the key branch December 14, 2021 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M-breaking-change Meta: Implementing or merging this will introduce a breaking change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant