Fix pattern move error on stable

This commit is contained in:
Christoph Herzog 2019-11-15 22:23:12 +01:00
parent 641e87a0b6
commit 27e5e447c7

View file

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