From dc49500cb3a4ce6530ac70d2cc1570c09487cf56 Mon Sep 17 00:00:00 2001 From: Noah Joeris Date: Tue, 20 Oct 2026 14:34:04 -0500 Subject: [PATCH] chore!: bump MSRV to 1.75 Match electrum-client's MSRV. Use `io::Error::other`, which Clippy requires once the MSRV is 1.74 or higher. Co-Authored-By: Claude Opus 5.5 --- CONTRIBUTING.md | 2 +- Cargo.toml | 2 +- src/client.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 03c8e03..0f78ba8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -46,7 +46,7 @@ Every new feature should be covered by functional tests where possible. When refactoring, structure your PR to make it easy to review and don't hesitate to split it into multiple small, focused PRs. -The Minimum Supported Rust Version is **1.70.0** (enforced by our CI). +The Minimum Supported Rust Version is **1.75.0** (enforced by our CI). Commits should cover both the issue fixed and the solution's rationale. These [guidelines](https://chris.beams.io/posts/git-commit/) should be kept in mind. Commit messages follow the ["Conventional Commits 1.0.0"](https://www.conventionalcommits.org/en/v1.0.0/) to make commit histories easier to read by humans and automated tools. All commits must be [GPG signed](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits). diff --git a/Cargo.toml b/Cargo.toml index 5b6611d..6e3c9e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "0.4.0" description = "Experimental but sane electrum client by @evanlinjin." license = "MIT OR Apache-2.0" edition = "2021" -rust-version = "1.70.0" +rust-version = "1.75" repository = "https://github.com/bitcoindevkit/electrum_streaming_client" documentation = "https://docs.rs/electrum_streaming_client" readme = "README.md" diff --git a/src/client.rs b/src/client.rs index 3d68f22..dcedc17 100644 --- a/src/client.rs +++ b/src/client.rs @@ -124,7 +124,7 @@ impl AsyncClient { Some(incoming_res) => { let event_opt = state .handle_incoming(incoming_res?) - .map_err(|error| std::io::Error::new(std::io::ErrorKind::Other, error))?; + .map_err(std::io::Error::other)?; if let Some(event) = event_opt { if let Err(_err) = event_tx.unbounded_send(event) { break; @@ -325,7 +325,7 @@ impl BlockingClient { .lock() .unwrap() .handle_incoming(incoming_res?) - .map_err(|error| std::io::Error::new(std::io::ErrorKind::Other, error))?; + .map_err(std::io::Error::other)?; if let Some(event) = event_opt { if let Err(_err) = event_tx.send(event) { break;