create driven example for tui renderer
This commit is contained in:
1 parent
c805bc25af
commit
71e34452da
10 files changed
+276
-34
No files matched your search
@@ -262,12 +262,7 @@ pub struct TreeStateViewEntry<'a, 'b> {
|
||||
impl<'a, 'b> AnyMapLike<'a> for TreeStateViewEntry<'a, 'b> {
|
||||
fn get<T: Any + Sync + Send>(self) -> Option<&'a T> {
|
||||
let slab = self.view.get_slab();
|
||||
dbg!(slab.is_some());
|
||||
slab.and_then(|slab| {
|
||||
let r = slab.get(self.id);
|
||||
dbg!(r.is_some());
|
||||
r
|
||||
})
|
||||
slab.and_then(|slab| slab.get(self.id))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user