From 0401b3ab5306ec12a8ecb337ba083afefb747eaa Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Sat, 24 Sep 2016 16:56:42 -0700 Subject: [PATCH] Use better type for `wrap_impl!` macro `ty` is better than `path` --- src/view/view_wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/view_wrapper.rs b/src/view/view_wrapper.rs index 392f235..7dd70f2 100644 --- a/src/view/view_wrapper.rs +++ b/src/view/view_wrapper.rs @@ -114,7 +114,7 @@ impl View for T { /// ``` #[macro_export] macro_rules! wrap_impl { - (self.$v:ident: $t:path) => { + (self.$v:ident: $t:ty) => { type V = $t; fn get_view(&self) -> &Self::V {