Revert "fix: use typeid of atoms for their unique ID (#558)"
This reverts commit bf9901a6cd.
This commit is contained in:
4 files changed
+11
-38
No files matched your search
@@ -4,7 +4,7 @@ use std::cell::RefCell;
|
||||
pub struct AtomRefBuilder;
|
||||
pub type AtomRef<T> = fn(AtomRefBuilder) -> T;
|
||||
|
||||
impl<V: 'static> Readable<RefCell<V>> for AtomRef<V> {
|
||||
impl<V> Readable<RefCell<V>> for AtomRef<V> {
|
||||
fn read(&self, _root: AtomRoot) -> Option<RefCell<V>> {
|
||||
todo!()
|
||||
}
|
||||
@@ -14,10 +14,7 @@ impl<V: 'static> Readable<RefCell<V>> for AtomRef<V> {
|
||||
}
|
||||
|
||||
fn unique_id(&self) -> AtomId {
|
||||
AtomId {
|
||||
ptr: *self as *const (),
|
||||
type_id: std::any::TypeId::of::<V>(),
|
||||
}
|
||||
*self as *const ()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user