From de98d3532b63fcea5c35fa88a635868dac1c38bd Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Mon, 1 Jan 2024 17:45:59 +0800 Subject: [PATCH] fix: Bump pyo3 to fix false positive of unnecessary_fallible_conversions (#3873) Signed-off-by: Xuanwo --- Cargo.lock | 20 ++++++++++---------- bindings/python/Cargo.toml | 2 +- bindings/python/src/lib.rs | 3 --- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2f2fd7e8d7f..5610ef6720f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5539,9 +5539,9 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.20.0" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04e8453b658fe480c3e70c8ed4e3d3ec33eb74988bd186561b0cc66b85c3bc4b" +checksum = "e82ad98ce1991c9c70c3464ba4187337b9c45fcbbb060d46dca15f0c075e14e2" dependencies = [ "cfg-if", "indoc", @@ -5569,9 +5569,9 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.20.0" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a96fe70b176a89cff78f2fa7b3c930081e163d5379b4dcdf993e3ae29ca662e5" +checksum = "5503d0b3aee2c7a8dbb389cd87cd9649f675d4c7f60ca33699a3e3859d81a891" dependencies = [ "once_cell", "target-lexicon", @@ -5579,9 +5579,9 @@ dependencies = [ [[package]] name = "pyo3-ffi" -version = "0.20.0" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "214929900fd25e6604661ed9cf349727c8920d47deff196c4e28165a6ef2a96b" +checksum = "18a79e8d80486a00d11c0dcb27cd2aa17c022cc95c677b461f01797226ba8f41" dependencies = [ "libc", "pyo3-build-config", @@ -5589,9 +5589,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.20.0" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dac53072f717aa1bfa4db832b39de8c875b7c7af4f4a6fe93cdbf9264cf8383b" +checksum = "1f4b0dc7eaa578604fab11c8c7ff8934c71249c61d4def8e272c76ed879f03d4" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -5601,9 +5601,9 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.20.0" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7774b5a8282bd4f25f803b1f0d945120be959a36c72e08e7cd031c792fdfd424" +checksum = "816a4f709e29ddab2e3cdfe94600d554c5556cad0ddfeea95c47b580c3247fa4" dependencies = [ "heck", "proc-macro2", diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 3c1ccf28bb8..2dc3d394c32 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -152,6 +152,6 @@ doc = false [dependencies] futures = "0.3.28" opendal.workspace = true -pyo3 = "0.20" +pyo3 = "0.20.1" pyo3-asyncio = { version = "0.20", features = ["tokio-runtime"] } tokio = "1" diff --git a/bindings/python/src/lib.rs b/bindings/python/src/lib.rs index 95582181a7f..2fab9881670 100644 --- a/bindings/python/src/lib.rs +++ b/bindings/python/src/lib.rs @@ -15,9 +15,6 @@ // specific language governing permissions and limitations // under the License. -// Suppress clippy::redundant_closure warning from pyo3 generated code -#![allow(clippy::redundant_closure)] - // expose the opendal rust core as `core`. // We will use `ocore::Xxx` to represents all types from opendal rust core. pub use ::opendal as ocore;