mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Use better type for wrap_impl!
macro
`ty` is better than `path`
This commit is contained in:
parent
fa2ad3261b
commit
0401b3ab53
@ -114,7 +114,7 @@ impl<T: ViewWrapper> View for T {
|
|||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! wrap_impl {
|
macro_rules! wrap_impl {
|
||||||
(self.$v:ident: $t:path) => {
|
(self.$v:ident: $t:ty) => {
|
||||||
type V = $t;
|
type V = $t;
|
||||||
|
|
||||||
fn get_view(&self) -> &Self::V {
|
fn get_view(&self) -> &Self::V {
|
||||||
|
Loading…
Reference in New Issue
Block a user