It is building again.
This commit is contained in:
@@ -26,6 +26,6 @@ impl<T> List<T> {
|
||||
}
|
||||
|
||||
pub fn get_data(&self) -> Option<&T> {
|
||||
self.head.map(|rc_node| &rc_node.as_ref().data)
|
||||
self.head.as_ref().map(|rc_node| &rc_node.data)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user