Skip to content

Fix solutions for 05_ticket_v2\01_enum#268

Open
Wenxing-hou wants to merge 1 commit intomainmatter:solutionsfrom
Wenxing-hou:fix_solution
Open

Fix solutions for 05_ticket_v2\01_enum#268
Wenxing-hou wants to merge 1 commit intomainmatter:solutionsfrom
Wenxing-hou:fix_solution

Conversation

@Wenxing-hou
Copy link

Refer to the main code:

if status != "To-Do" && status != "In Progress" && status != "Done" {
panic!("Only `To-Do`, `In Progress`, and `Done` statuses are allowed");
}
Ticket {
title,
description,
status,
}

It is better to fix the check rather than delete it.

Signed-off-by: Wenxing Hou houwenxing@xiaomi.com

It is better to fix the check rather than delete it.

Signed-off-by: Wenxing Hou <houwenxing@xiaomi.com>
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.

1 participant