From 0a3bbf8f211a8b0047f3e76b14b2ec4b9e26d353 Mon Sep 17 00:00:00 2001 From: Magnus Hallin Date: Sun, 19 Feb 2017 12:58:12 +0100 Subject: [PATCH] Fix bug in input object macro --- src/macros/input_object.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros/input_object.rs b/src/macros/input_object.rs index dbc43bc8..f527ed83 100644 --- a/src/macros/input_object.rs +++ b/src/macros/input_object.rs @@ -70,7 +70,7 @@ macro_rules! graphql_input_object { println!("Found variable for {:?}: {:?} in {:?}", n, v, $var); match v { - $( Some(&&InputValue::Null) | None if true => $default, )* + $( Some(&&$crate::InputValue::Null) | None if true => $default, )* Some(v) => $crate::FromInputValue::from(v).unwrap(), _ => $crate::FromInputValue::from(&$crate::InputValue::null()).unwrap() }