sequence enumerate(): rename variable
This commit is contained in:
parent
4b8b857134
commit
294013de02
1 changed files with 3 additions and 3 deletions
|
@ -14,13 +14,13 @@ impl<Item: 'static> OuterViewPort<dyn SequenceView<Item = Item>> {
|
||||||
let port = ViewPort::new();
|
let port = ViewPort::new();
|
||||||
port.add_update_hook(Arc::new(self.0.clone()));
|
port.add_update_hook(Arc::new(self.0.clone()));
|
||||||
|
|
||||||
let map = Arc::new(RwLock::new(EnumerateSequence {
|
let view = Arc::new(RwLock::new(EnumerateSequence {
|
||||||
src_view: None,
|
src_view: None,
|
||||||
cast: port.inner().get_broadcast(),
|
cast: port.inner().get_broadcast(),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
self.add_observer(map.clone());
|
self.add_observer(view.clone());
|
||||||
port.inner().set_view(Some(map));
|
port.inner().set_view(Some(view));
|
||||||
port.into_outer()
|
port.into_outer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue