Merge separate TrackedView impl blocks

This commit is contained in:
Alexandre Bury 2018-01-29 17:34:06 -08:00
parent f091cec861
commit 22e2360aa1

View File

@ -18,10 +18,6 @@ impl<T: View> TrackedView<T> {
self.offset.get() self.offset.get()
} }
inner_getters!(self.view: T);
}
impl<T: View> TrackedView<T> {
/// Creates a new `TrackedView` around `view`. /// Creates a new `TrackedView` around `view`.
pub fn new(view: T) -> Self { pub fn new(view: T) -> Self {
TrackedView { TrackedView {
@ -34,6 +30,8 @@ impl<T: View> TrackedView<T> {
pub fn with_id(self, id: &str) -> IdView<Self> { pub fn with_id(self, id: &str) -> IdView<Self> {
IdView::new(id, self) IdView::new(id, self)
} }
inner_getters!(self.view: T);
} }
impl<T: View> ViewWrapper for TrackedView<T> { impl<T: View> ViewWrapper for TrackedView<T> {