Skip to content

Commit

Permalink
Update src/value.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Nov 30, 2023
1 parent 3bf3ef7 commit 8815701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pub(crate) fn take_value(
Ok(NumberAny::Float(float)) => Ok(JsonValue::Float(float)),
Err(e) => {
if !peak.is_num() {
Err(json_error!(ExpectedSomeValue, self.parser.index).into())
Err(json_error!(ExpectedSomeValue, parser.index).into())

Check warning on line 147 in src/value.rs

View check run for this annotation

Codecov / codecov/patch

src/value.rs#L147

Added line #L147 was not covered by tests
} else {
Err(e.into())
}
Expand Down

0 comments on commit 8815701

Please sign in to comment.