Skip to content

Commit ef5482f

Browse files
committed
fix
1 parent 4bebfcb commit ef5482f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/keypath.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ use crate::Error;
3434

3535
/// Represents a set of key path chains.
3636
/// Compatible with PostgreSQL extracts JSON sub-object paths syntax.
37-
#[derive(Debug, Clone)]
37+
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
3838
pub struct KeyPaths<'a> {
3939
pub paths: Vec<KeyPath<'a>>,
4040
}
4141

4242
/// Represents a valid key path.
43-
#[derive(Debug, Clone)]
43+
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
4444
pub enum KeyPath<'a> {
4545
/// represents the index of an Array, allow negative indexing.
4646
Index(i32),

0 commit comments

Comments
 (0)