delete head is not returning None, causing length update overflow
zinking opened this issue · 7 comments
zinking commented
Rust/src/data_structures/linked_list.rs
Line 199 in 6189823
it looks the implementation of drop is flawed and delete head is not returning none to terminate the drop process appropriately.
RoKu1 commented
Hey, Is this open to take ?
siriak commented
Yes, it is
RoKu1 commented
Hey will take it. As I see if delete_head does not return None, still the drop should terminate. Can you give me bit context as to what is causing this lenth update overflow.
zinking commented
@RoKu1 https://github.com/zinking/Coursera/blob/master/rust-course/src/ds/linked_list.rs it could be my re-imp problem. I ended up using linked list size as loop variable.