You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/12/31 11:45:41 UTC

(incubator-opendal) 01/01: fix: Bump pyo3 to 0.20.1 to fix false positive of unnecessary_fallible_conversions

This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch supress-warning
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 492422c12a0c22b55056aad15e16090cd161ac55
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Sun Dec 31 19:45:12 2023 +0800

    fix: Bump pyo3 to 0.20.1 to fix false positive of unnecessary_fallible_conversions
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 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 556bed6a0..746c3a9ac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5529,9 +5529,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",
@@ -5559,9 +5559,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",
@@ -5569,9 +5569,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",
@@ -5579,9 +5579,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",
@@ -5591,9 +5591,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 3c1ccf28b..2dc3d394c 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 95582181a..2fab98816 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;