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

Simplify log_snippet #135

Merged
merged 1 commit into from Mar 18, 2018
Merged

Simplify log_snippet #135

merged 1 commit into from Mar 18, 2018

Conversation

Ekleog
Copy link
Member

@Ekleog Ekleog commented Mar 18, 2018

No description provided.

@grahamc grahamc merged commit dc06ba1 into NixOS:next Mar 18, 2018
@grahamc
Copy link
Member

grahamc commented Mar 18, 2018

Magic..!

@Ekleog
Copy link
Member Author

Ekleog commented Mar 18, 2018

Yeah, type inference guesses the return type of .into() is to be Vec<_> thanks to the return type of the function, thus calls VecDeque::into<Vec<_>>, which calls Vec::from<VecDeque<_>>, which does the work, if I remember correctly how the From and Into traits are implemented :)

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