Use better type for wrap_impl! macro

`ty` is better than `path`
This commit is contained in:
Alexandre Bury 2016-09-24 16:56:42 -07:00
parent fa2ad3261b
commit 0401b3ab53

View File

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