Skip to content

Commit

Permalink
Fix bug in input object macro
Browse files Browse the repository at this point in the history
  • Loading branch information
mhallin committed Feb 19, 2017
1 parent 9d520d7 commit 0a3bbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros/input_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 0a3bbf8

Please sign in to comment.