aya: Fix segfault in define_link_wrapper

The From<$wrapper> for $base implemention is refers to itself,
eventually causing a segfault.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/379/head
Dave Tucker 2 years ago
parent 6f0637a6c8
commit 18584e2259

@ -258,7 +258,7 @@ macro_rules! define_link_wrapper {
impl From<$wrapper> for $base { impl From<$wrapper> for $base {
fn from(w: $wrapper) -> $base { fn from(w: $wrapper) -> $base {
w.into() w.0
} }
} }
}; };

Loading…
Cancel
Save