From 27e5e447c73fd8b396a8c6e7a06d24b66d96f7ef Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Fri, 15 Nov 2019 22:23:12 +0100 Subject: [PATCH] Fix pattern move error on stable --- juniper/src/types/containers.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/juniper/src/types/containers.rs b/juniper/src/types/containers.rs index 37b24e93..4af6bd0c 100644 --- a/juniper/src/types/containers.rs +++ b/juniper/src/types/containers.rs @@ -196,8 +196,13 @@ where for o in iter { match executor.resolve(info, &o) { - Ok(value) if stop_on_null && value.is_null() => return Ok(value), - Ok(value) => result.push(value), + Ok(value) => { + if stop_on_null && value.is_null() { + return Ok(value); + } else { + result.push(value) + } + } Err(e) => return Err(e), } }