Skip to content

Commit 5e8daff

Browse files
tobisinghaniaTobias Singhaniaandrusha
authored
Increase minimum polars-rs version to 0.41 (#49)
* Increase minimum polars-rs version to 0.41 * Clippy polars.rs --------- Co-authored-by: Tobias Singhania <[email protected]> Co-authored-by: andrusha <[email protected]>
1 parent f8bb116 commit 5e8daff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

snowflake-api/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ url = "2"
4141
uuid = { version = "1", features = ["v4"] }
4242

4343
# polars-support
44-
polars-core = { version = ">=0.32", optional = true }
45-
polars-io = { version = ">=0.32", features = [
44+
polars-core = { version = ">=0.41", optional = true }
45+
polars-io = { version = ">=0.41", features = [
4646
"json",
4747
"ipc_streaming",
4848
], optional = true }

snowflake-api/src/polars.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use std::convert::TryFrom;
2-
use std::num::NonZero;
2+
use std::num::NonZeroUsize;
33

44
use bytes::{Buf, Bytes};
55
use polars_core::frame::DataFrame;
@@ -38,7 +38,7 @@ fn dataframe_from_json(json_result: &JsonResult) -> Result<DataFrame, PolarsCast
3838
let reader = std::io::Cursor::new(json_string.as_bytes());
3939
let df = JsonReader::new(reader)
4040
.with_json_format(JsonFormat::Json)
41-
.infer_schema_len(Some(NonZero::new(5).unwrap()))
41+
.infer_schema_len(NonZeroUsize::new(5))
4242
.finish()?;
4343
Ok(df)
4444
}

0 commit comments

Comments
 (0)