Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dimastbk committed Feb 26, 2025
1 parent 4294181 commit 1cccf14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ crate-type = ["cdylib"]

[dependencies]
calamine = { version = "0.26.1", features = ["dates"] }
pyo3 = { version = "0.23.0", features = [
pyo3 = { version = "0.23.5", features = [
"extension-module",
"chrono",
"generate-import-lib",
Expand All @@ -24,4 +24,4 @@ chrono = { version = "0.4.38", features = ["serde"] }
pyo3-file = { git = "https://github.com/dimastbk/pyo3-file", rev = "baffde5aba70474f899a3f5379940cbf4a28e52c" }

[build-dependencies]
pyo3-build-config = "0.23.0"
pyo3-build-config = "0.23.5"
8 changes: 2 additions & 6 deletions src/types/sheet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ impl CalamineSheet {
PyList::new(slf.py(), row.iter().map(<&Data as Into<CellValue>>::into)).unwrap()
}),
)
.map_err(Into::into)
}

fn iter_rows(&self) -> CalamineCellIterator {
Expand Down Expand Up @@ -256,13 +255,10 @@ impl CalamineCellIterator {
if slf.position > slf.start.0 {
slf.iter
.next()
.map(|row| {
PyList::new(slf.py(), row.iter().map(<&Data as Into<CellValue>>::into))
.map_err(Into::into)
})
.map(|row| PyList::new(slf.py(), row.iter().map(<&Data as Into<CellValue>>::into)))
.transpose()
} else {
Some(PyList::new(slf.py(), slf.empty_row.clone()).map_err(Into::into)).transpose()
Some(PyList::new(slf.py(), slf.empty_row.clone())).transpose()
}
}
}

0 comments on commit 1cccf14

Please sign in to comment.