I'm new to rust and trying to implement some custom collections for practice.
I've mostly implemented this singly-linked list, but I'm not sure how to implement the iterator.
Currently I'm getting this (L106):
// cannot return value referencing temporary value
Some(ref r) => Some(&r.borrow().value),
I understand (basically) what it means, but not how to fix it.