mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
Merge pull request #198 from xliiv/fix-inner-getters
Fix getting view in inner_getters
This commit is contained in:
commit
4de8bd7363
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user