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

2.5 todo instead of unimplemented #251

Open
Chris00 opened this issue Jun 4, 2022 · 0 comments
Open

2.5 todo instead of unimplemented #251

Chris00 opened this issue Jun 4, 2022 · 0 comments

Comments

@Chris00
Copy link

Chris00 commented Jun 4, 2022

For Section 2.5, wouldn't it be better to use the todo! macro in each of the cases:

pub fn pop(&mut self) -> Option<i32> {
    match self.head {
        Link::Empty => {
            todo!()
        }
        Link::More(node) => {
            todo!()
        }
    }
}

or a todo!() at the end?

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

No branches or pull requests

1 participant