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: str::from builtin function with String #170

Merged
merged 3 commits into from
Oct 12, 2024

Conversation

VianneyRousset
Copy link

  • Added from_str function to Value that is called by the str::from builtin function.
  • from_str does not add quotation marks around an input string. str::from("foo") returns foo instead of "foo" as before.
  • Choice has been made to keep the use of Value::to_string formatting for Value::Tuple variant. Therefore, str::from((42, false, "foo")) returns (42, false, "foo")

@ISibboI ISibboI self-assigned this Oct 11, 2024
@ISibboI ISibboI added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Oct 11, 2024
@ISibboI
Copy link
Owner

ISibboI commented Oct 11, 2024

Awesome, thanks! Seems like the CI is all screwed up, I'll look into that.

@ISibboI ISibboI force-pushed the main branch 6 times, most recently from e4a8571 to 6608b16 Compare October 11, 2024 15:01
- Added `from_str` function to `Value` that is called by the `str::from`
  builtin function.
- `from_str` does not add quotation marks around an input string.
  `str::from("foo")` returns `foo` instead of `"foo"` as before.
- Choice has been made to keep the use of `Value::to_string` formatting
  for `Value::Tuple` variant.
  `str::from((42, false, "foo"))` returns `(42, false, "foo")`
@ISibboI
Copy link
Owner

ISibboI commented Oct 11, 2024

Could you run cargo fmt?

@VianneyRousset
Copy link
Author

Could you run cargo fmt?

Done, also removed use of "3.14" in my tests that were raising some warnings on github.

@ISibboI ISibboI merged commit 9701989 into ISibboI:main Oct 12, 2024
16 checks passed
@ISibboI
Copy link
Owner

ISibboI commented Oct 12, 2024

Great, thanks!

@VianneyRousset VianneyRousset deleted the bugfix/strfrom branch October 12, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants