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 all_fruits_types_in_basket to fail if all fruit kinds are not included #1782

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

danielsomerfield
Copy link
Contributor

This is a redo of PR #1626 which I flaked on. This accounts for the new file structure and the formatting request.

@@ -27,6 +27,14 @@ enum Fruit {
Pineapple,
}

const FRUIT_KINDS: [Fruit; 5] = [
Copy link
Member

Choose a reason for hiding this comment

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

this can be in the test module, and there's no reason to have this be an array when it could be a Vec<Fruit> instead

@mo8it
Copy link
Contributor

mo8it commented Mar 27, 2024

@danielsomerfield Could you please apply the requested changes so that I can merge? :D

@danielsomerfield
Copy link
Contributor Author

Sorry, wasn't getting emails until recently.

I can't move it into the test mod as both a const and a vec, but I could push it into the test function as a vec. Let me know if that is ok. Otherwise, I believe it has to be an array.

@guija
Copy link

guija commented May 20, 2024

Hi, when will this be merged? I just stumbled over the same "issue".

@mo8it mo8it changed the base branch from main to v6 June 24, 2024 11:00
@mo8it mo8it merged commit 0cd96af into rust-lang:v6 Jun 24, 2024
5 checks passed
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.

4 participants