chanced / jsonptr

JSON Pointer (RFC 6901) implementation for Rust
Apache License 2.0
44 stars 4 forks source link

`Pointer::last` return `None` for root pointer #23

Closed wngr closed 5 months ago

wngr commented 5 months ago

Hey again,

just hit this one: Pointer::last panics for empty/root pointers.

Added the root check as was already done for Pointer::front.

Cheers!

chanced commented 5 months ago

Awesome, thanks. Also, sorry about that.

chanced commented 5 months ago

v0.4.6 was published with this.

wngr commented 5 months ago

Awesome, thanks. Also, sorry about that.

No need to be sorry about anything! You created a nice library with jsonptr, and some things just surface when actually using it.

Thanks for being so responsive!