In the below example it adds todo!("Fill in body") as if it was a function body but it's not. This is not valid rust code and thus cannot be formatted.
//! Solution for https://leetcode.com/problems/implement-stack-using-queues
//! 225. Implement Stack using Queues
struct MyStack { todo!("Fill in body") }
Describe the bug
In the below example it adds
todo!("Fill in body")
as if it was a function body but it's not. This is not valid rust code and thus cannot be formatted.Leetcode problem
https://leetcode.com/problems/implement-stack-using-queues
To Reproduce
cargo leet gen https://leetcode.com/problems/implement-stack-using-queues
Error Message
N/A
Expected behavior
The todo is not added to the struct body
Environment Info:
cargo 1.71.1 (7f1d04c00 2023-07-29)
Additional context
N/A