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

Rename NodeRef.try_into to avoid trait conflicts #917

Merged
merged 1 commit into from
Feb 4, 2020

Conversation

jstarry
Copy link
Member

@jstarry jstarry commented Feb 2, 2020

Problem

The try_into name on the NodeRef struct, conflicts with the standard library TryInto trait when it's in scope.

Changes

Rename try_into to cast

Related: yewstack/docs#21

@jstarry
Copy link
Member Author

jstarry commented Feb 2, 2020

@HeyZoos @jplatte @hgzimmerman any thoughts on the naming here?

Note: It's just a convenience method, so we could just get rid of it too 🤔

@HeyZoos
Copy link

HeyZoos commented Feb 3, 2020

cast seems fine to me! I'm all for keeping it, it's a convenient convenience method :)

@hgzimmerman
Copy link
Member

I think this is fine.

@jstarry jstarry merged commit 87f76f7 into yewstack:master Feb 4, 2020
@jstarry jstarry deleted the rename-try-into branch February 4, 2020 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants