too-many-lists icon indicating copy to clipboard operation
too-many-lists copied to clipboard

2.5 todo instead of unimplemented

Open Chris00 opened this issue 2 years ago • 0 comments

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?

Chris00 avatar Jun 04 '22 22:06 Chris00