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

Add From<&[T]> for Classes #1448

Merged
merged 2 commits into from
Jul 25, 2020
Merged

Conversation

ilyvion
Copy link
Contributor

@ilyvion ilyvion commented Jul 25, 2020

Description

Add an implementation impl<T: AsRef<str>> From<&[T]> for Classes so that you can use anything that can produce slices with the class attribute.

Checklist:

  • I have run ./ci/run_stable_checks.sh
  • I have reviewed my own code
  • I have added tests

siku2
siku2 previously approved these changes Jul 25, 2020
Copy link
Member

@siku2 siku2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just waiting for Travis to hopefully recover.

@ilyvion
Copy link
Contributor Author

ilyvion commented Jul 25, 2020

Looks like the same thing that happened on my other PR, before I started adding more commits, which re-triggered subsequent builds, but then only one at a time instead of this doubling up.

It fires up the same build twice, and only one of the two "checks" get notified of its completion. Like if you click on the "Details" for the one that is "Queued - Build Created" and click "The Build" of "The build created." on that page, it takes you to a finished, successful build.

@mergify mergify bot dismissed siku2’s stale review July 25, 2020 19:57

Pull request has been modified.

@siku2 siku2 merged commit bfc7162 into yewstack:master Jul 25, 2020
@ilyvion ilyvion deleted the classes_from_slice branch July 26, 2020 12:39
jstarry pushed a commit that referenced this pull request Aug 16, 2020
* Add From<&[T]> for Classes

* Round out the test cases for From<&[T]> for Classes
teymour-aldridge pushed a commit to teymour-aldridge/yew that referenced this pull request Sep 1, 2020
* Add From<&[T]> for Classes

* Round out the test cases for From<&[T]> for Classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants