Skip to content

Conversation

@jkosh44
Copy link

@jkosh44 jkosh44 commented Oct 13, 2022

No description provided.

}

if depth == dims.len() {
return write!(fmt, "{}", data.next().unwrap());
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If depth == dims.len() == 0 then data.next().unwrap() would panic because there is no data in a 0 dimensional array.

Copy link

@benesch benesch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! LGTM. Can you also send upstream to sfackler?

@benesch benesch merged commit f58d010 into MaterializeInc:master Oct 14, 2022
@benesch
Copy link

benesch commented Oct 14, 2022

Done as: rust-postgres#12.

@jkosh44 jkosh44 deleted the empty-array branch October 14, 2022 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants