Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Safer string coercions #150

Merged
merged 1 commit into from
Jun 2, 2018
Merged

Safer string coercions #150

merged 1 commit into from
Jun 2, 2018

Conversation

chancancode
Copy link
Member

Previously, we blindly assume Ruby strings are UTF-8 and turn them into Rust Strings (which are assumed to be UTF-8). This is clearly unsafe so this commit adds some checks to cofirm that and generate type errors appropiately.

Previously, we blindly assume Ruby strings are UTF-8 and turn them
into Rust Strings (which *are* assumed to be UTF-8). This is clearly
unsafe so this commit adds some checks to cofirm that and generate
type errors appropiately.
@chancancode chancancode merged commit b6a3e5a into master Jun 2, 2018
@chancancode chancancode deleted the safer-strings branch June 2, 2018 00:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant