Skip to content

Commit

Permalink
update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
asmello committed Feb 18, 2025
1 parent 25b59d3 commit 29a45b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ default = ["diff"]
diff = []

[dependencies]
# jsonptr = "0.6.0"
jsonptr = { git = "https://github.com/asmello/jsonptr", branch = "main" }
jsonptr = "0.7.1"
serde = { version = "1.0.159", features = ["derive"] }
serde_json = "1.0.95"
thiserror = "1.0.40"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub use self::diff::diff;

struct WriteAdapter<'a>(&'a mut dyn fmt::Write);

impl<'a> std::io::Write for WriteAdapter<'a> {
impl std::io::Write for WriteAdapter<'_> {
fn write(&mut self, buf: &[u8]) -> Result<usize, std::io::Error> {
let s = std::str::from_utf8(buf).unwrap();
self.0
Expand Down
10 changes: 5 additions & 5 deletions tests/errors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
- op: copy
from: "/third/1~1"
path: "/fourth"
error: "operation '/0' failed at path '/fourth': \"from\" path is invalid"
error: 'operation ''/0'' failed at path ''/fourth'': "from" path is invalid'
- doc: *1
patch:
- op: move
from: "/third/1~1"
path: "/fourth"
error: "operation '/0' failed at path '/fourth': \"from\" path is invalid"
error: 'operation ''/0'' failed at path ''/fourth'': "from" path is invalid'
- doc: *1
patch:
- op: move
Expand Down Expand Up @@ -89,19 +89,19 @@
- op: add
path: "first"
value: true
error: "json pointer is malformed as it does not start with a backslash ('/')"
error: "json pointer failed to parse; does not start with a slash ('/') and is not empty"
- doc: *1
patch:
- op: replace
path: "first"
value: true
error: "json pointer is malformed as it does not start with a backslash ('/')"
error: "json pointer failed to parse; does not start with a slash ('/') and is not empty"
- doc: *1
patch:
- op: remove
path: "first"
value: true
error: "json pointer is malformed as it does not start with a backslash ('/')"
error: "json pointer failed to parse; does not start with a slash ('/') and is not empty"
- doc: *1
patch:
- op: add
Expand Down

0 comments on commit 29a45b7

Please sign in to comment.