From 6ce3a70ca032a78e189ee7db6e90e1e9d1d6dfc6 Mon Sep 17 00:00:00 2001 From: Andrew J Westlake Date: Tue, 17 Oct 2023 01:37:38 +0000 Subject: [PATCH] Bumped MSRV --- .github/workflows/ci.yml | 5 +---- README.md | 2 +- src/generic.rs | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b97eafb..9838b91 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,7 +91,7 @@ jobs: platform: { os: "windows-latest", python-architecture: "x86" } include: # Test minimal supported Rust version - - rust: 1.62.0 + - rust: 1.63.0 python-version: "3.10" platform: { @@ -155,9 +155,6 @@ jobs: env: RUST_BACKTRACE: 1 RUSTFLAGS: "-D warnings" - # TODO: this is a hack to workaround compile_error! warnings about auto-initialize on PyPy - # Once cargo's `resolver = "2"` is stable (~ MSRV Rust 1.52), remove this. - PYO3_CI: 1 coverage: needs: [fmt] diff --git a/README.md b/README.md index 8389021..22fc3e5 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Actions Status](https://github.com/awestlake87/pyo3-asyncio/workflows/CI/badge.svg)](https://github.com/awestlake87/pyo3-asyncio/actions) [![codecov](https://codecov.io/gh/awestlake87/pyo3-asyncio/branch/master/graph/badge.svg)](https://codecov.io/gh/awestlake87/pyo3-asyncio) [![crates.io](https://img.shields.io/crates/v/pyo3-asyncio)](https://crates.io/crates/pyo3-asyncio) -[![minimum rustc 1.62](https://img.shields.io/badge/rustc-1.62+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html) +[![minimum rustc 1.63](https://img.shields.io/badge/rustc-1.63+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html) [Rust](http://www.rust-lang.org/) bindings for [Python](https://www.python.org/)'s [Asyncio Library](https://docs.python.org/3/library/asyncio.html). This crate facilitates interactions between Rust Futures and Python Coroutines and manages the lifecycle of their corresponding event loops. diff --git a/src/generic.rs b/src/generic.rs index 301ddc6..3afc462 100644 --- a/src/generic.rs +++ b/src/generic.rs @@ -645,7 +645,7 @@ fn get_panic_message(any: &dyn std::any::Any) -> &str { if let Some(str_slice) = any.downcast_ref::<&str>() { str_slice } else if let Some(string) = any.downcast_ref::() { - &string + string } else { "unknown error" }