Skip to content

Commit 54d0932

Browse files
committed
release: 0.22.0
1 parent 992cdad commit 54d0932

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pythonize"
3-
version = "0.21.1"
3+
version = "0.22.0"
44
authors = ["David Hewitt <[email protected]>"]
55
edition = "2021"
66
rust-version = "1.63"
@@ -13,11 +13,11 @@ documentation = "https://docs.rs/crate/pythonize/"
1313

1414
[dependencies]
1515
serde = { version = "1.0", default-features = false, features = ["std"] }
16-
pyo3 = { version = "0.22.0", default-features = false }
16+
pyo3 = { version = "0.22.2", default-features = false }
1717

1818
[dev-dependencies]
1919
serde = { version = "1.0", default-features = false, features = ["derive"] }
20-
pyo3 = { version = "0.22.0", default-features = false, features = ["auto-initialize", "macros", "py-clone"] }
20+
pyo3 = { version = "0.22.2", default-features = false, features = ["auto-initialize", "macros", "py-clone"] }
2121
serde_json = "1.0"
2222
serde_bytes = "0.11"
2323
maplit = "1.0.2"

src/error.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ impl PythonizeError {
3232
}
3333
}
3434

35-
pub(crate) fn unexpected_type<T>(t: T) -> Self
36-
where
37-
T: ToString,
38-
{
39-
Self {
40-
inner: Box::new(ErrorImpl::UnexpectedType(t.to_string())),
41-
}
42-
}
43-
4435
pub(crate) fn dict_key_not_string() -> Self {
4536
Self {
4637
inner: Box::new(ErrorImpl::DictKeyNotString),

0 commit comments

Comments
 (0)