Fix bug in input object macro

This commit is contained in:
Magnus Hallin 2017-02-19 12:58:12 +01:00
parent 9d520d77f9
commit 0a3bbf8f21

View file

@ -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()
}