From 579b8fddd39532f71a7421122c5f42434309bcb0 Mon Sep 17 00:00:00 2001 From: Tymoteusz Jankowski Date: Sat, 27 Jan 2018 19:51:03 +0100 Subject: [PATCH] Fix getting view in inner_getters --- src/view/view_wrapper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/view_wrapper.rs b/src/view/view_wrapper.rs index 88c7f80..227f59b 100644 --- a/src/view/view_wrapper.rs +++ b/src/view/view_wrapper.rs @@ -232,11 +232,11 @@ macro_rules! inner_getters { (self.$v:ident: $t:ty) => { /// Gets access to the inner view. pub fn get_inner(&self) -> &$t { - &self.view + &self.$v } /// Gets mutable access to the inner view. pub fn get_inner_mut(&mut self) -> &mut $t { - &mut self.view + &mut self.$v } } }