Merge pull request #198 from xliiv/fix-inner-getters

Fix getting view in inner_getters
This commit is contained in:
Alexandre Bury 2018-01-27 11:09:36 -08:00 committed by GitHub
commit 4de8bd7363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}
}