Skip to content

Commit

Permalink
compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Oct 23, 2024
1 parent ef5a32e commit b013c03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern crate core;

use std::sync::OnceLock;

use jiter::{map_json_error, PartialMode, PythonParse, StringCacheMode};
use jiter::{map_json_error, FloatMode, PartialMode, PythonParse, StringCacheMode};
use pyo3::exceptions::PyTypeError;
use pyo3::{prelude::*, sync::GILOnceCell};
use serializers::BytesMode;
Expand Down Expand Up @@ -61,7 +61,7 @@ pub fn from_json<'py>(
cache_mode: cache_strings,
partial_mode: allow_partial,
catch_duplicate_keys: false,
lossless_floats: false,
float_mode: FloatMode::Float,
};
parse_builder
.python_parse(py, json_bytes)
Expand Down
3 changes: 2 additions & 1 deletion src/validators/json.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use jiter::FloatMode;
use pyo3::intern;
use pyo3::prelude::*;
use pyo3::types::PyDict;
Expand Down Expand Up @@ -71,7 +72,7 @@ impl Validator for JsonValidator {
cache_mode: state.cache_str(),
partial_mode: PartialMode::Off,
catch_duplicate_keys: false,
lossless_floats: false,
float_mode: FloatMode::Float,
};
let obj = parse_builder
.python_parse(py, json_bytes)
Expand Down

0 comments on commit b013c03

Please sign in to comment.