Skip to content

Commit 637dc48

Browse files
Ggiggleliuq19
authored andcommitted
feat: derive hash for json pointer path
1 parent ab1e899 commit 637dc48

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Cargo.lock
1111
*.profraw
1212
*.profdata
1313
*.svg
14-
*.diff
14+
*.diff
15+
.DS_Store

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "Apache-2.0"
1010
name = "sonic-rs"
1111
readme = "README.md"
1212
repository = "https://github.com/cloudwego/sonic-rs"
13-
version = "0.5.3"
13+
version = "0.5.4"
1414

1515
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1616

src/pointer/point.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use faststr::FastStr;
44
pub type JsonPointer = [PointerNode];
55

66
/// Represents a node in a json pointer path.
7-
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
7+
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
88
pub enum PointerNode {
99
Key(FastStr),
1010
Index(usize),

0 commit comments

Comments
 (0)