on master help sign in
Remove redundant extension trait
46d0cccNick Fitzgerald
src/vdom.rs−12
@@ -493,18 +493,6 @@ where
493 *h.borrow_mut() = Some(f);
493 *h.borrow_mut() = Some(f);
494}
494}
495
495
496−trait CellOptionExt<T> {
497− fn take(&self) -> Option<T>;
498−}
499−
500−impl<T> CellOptionExt<T> for Cell<Option<T>> {
501− fn take(&self) -> Option<T> {
502− let temp = Cell::new(None);
503− self.swap(&temp);
504− temp.into_inner()
505− }
506−}
507−
508/// An operation failed because the virtual DOM was already dropped and
496/// An operation failed because the virtual DOM was already dropped and
509/// unmounted.
497/// unmounted.
510#[derive(Debug)]
498#[derive(Debug)]