diff --git a/Cargo.lock b/Cargo.lock index f0848c5..16e9fb3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -206,6 +206,16 @@ dependencies = [ "debug_unsafe", ] +[[package]] +name = "atoi_simd" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3cdb3708a128e559a30fb830e8a77a5022ee6902806925c216658652b452a44" +dependencies = [ + "debug_unsafe", + "rustversion", +] + [[package]] name = "autocfg" version = "1.5.0" @@ -270,11 +280,11 @@ checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" [[package]] name = "calamine" -version = "0.35.0" +version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8822fe6253ca47aa5ad9a3be09f6fe7cd20c6a74e41b0aa42e8f4e3d523508df" +checksum = "5fa68281b1a76b54a62156474adb06bb380a67e07dd60656e3217152b42183f3" dependencies = [ - "atoi_simd", + "atoi_simd 0.18.1", "byteorder", "chrono", "codepage", @@ -945,7 +955,7 @@ version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42a32eca8e08ac4cc5de2ac3996d2b38567bba72cdb19bbfd94c370193ed51dd" dependencies = [ - "atoi_simd", + "atoi_simd 0.17.0", "bytemuck", "chrono", "either", @@ -1225,9 +1235,9 @@ dependencies = [ [[package]] name = "quick-xml" -version = "0.39.2" +version = "0.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "958f21e8e7ceb5a1aa7fa87fab28e7c75976e0bfe7e23ff069e0a260f894067d" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" dependencies = [ "encoding_rs", "memchr", @@ -1887,9 +1897,9 @@ dependencies = [ [[package]] name = "zip" -version = "7.3.0" +version = "8.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "268bf6f9ceb991e07155234071501490bb41fd1e39c6a588106dad10ae2a5804" +checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b" dependencies = [ "crc32fast", "flate2", @@ -1913,9 +1923,9 @@ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" [[package]] name = "zopfli" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edfc5ee405f504cd4984ecc6f14d02d55cfda60fa4b689434ef4102aae150cd7" +checksum = "f05cd8797d63865425ff89b5c4a48804f35ba0ce8d125800027ad6017d2b5249" dependencies = [ "bumpalo", "crc32fast", diff --git a/Cargo.toml b/Cargo.toml index 2e854c8..9c00965 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "fastexcel" version = "0.20.2" description = "A fast excel reader for Rust and Python" -rust-version = "1.85.0" +rust-version = "1.88.0" edition = "2024" license = "MIT" homepage = "https://github.com/ToucanToco/fastexcel" @@ -29,7 +29,7 @@ crate-type = ["cdylib", "rlib"] arrow-array = { version = "^59", features = ["ffi"], optional = true } arrow-pyarrow = { version = "^59", optional = true } arrow-schema = { version = "^59", optional = true } -calamine = { version = "^0.35.0", features = ["chrono"] } +calamine = { version = "^0.36.1", features = ["chrono"] } chrono = { version = "^0.4.40", default-features = false } log = "^0.4" polars-core = { version = ">=0.53", features = [ diff --git a/src/types/excelsheet/mod.rs b/src/types/excelsheet/mod.rs index fb64561..884d18c 100644 --- a/src/types/excelsheet/mod.rs +++ b/src/types/excelsheet/mod.rs @@ -94,13 +94,13 @@ impl Pagination { ) -> FastExcelResult { let max_height = range.height(); // Only validate for simple skip_rows case - if let SkipRows::Simple(skip_count) = &skip_rows { - if max_height < *skip_count { - return Err(FastExcelErrorKind::InvalidParameters(format!( - "Too many rows skipped. Max height is {max_height}" - )) - .into()); - } + if let SkipRows::Simple(skip_count) = &skip_rows + && max_height < *skip_count + { + return Err(FastExcelErrorKind::InvalidParameters(format!( + "Too many rows skipped. Max height is {max_height}" + )) + .into()); } Ok(Self { skip_rows, n_rows }) }