From ee96baffd306cb8d20ddc5575cf739bb1a6354e8 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Tue, 2 Feb 2016 02:15:05 -0500 Subject: [PATCH] fix(value_t_or_exit): fixes typo which causes value_t_or_exit to return a Result --- src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros.rs b/src/macros.rs index 1c12f18b..12add3fd 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -95,7 +95,7 @@ macro_rules! value_t { #[macro_export] macro_rules! value_t_or_exit { ($m:ident, $v:expr, $t:ty) => { - value_t!($m.value_of($v), $t) + value_t_or_exit!($m.value_of($v), $t) }; ($m:ident.value_of($v:expr), $t:ty) => { if let Some(v) = $m.value_of($v) {