From 3b059f8e379cf43102515692a9c041db8c4f5a33 Mon Sep 17 00:00:00 2001 From: Zane Othman Date: Wed, 11 Sep 2024 11:54:22 -0700 Subject: [PATCH 1/2] fix: use _ instead of range pattern in match Something changed in how the compiler determines whether all cases of a match were covered in 1.75, so using the range pattern broke building on 1.74. --- tacacs-plus/src/inner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tacacs-plus/src/inner.rs b/tacacs-plus/src/inner.rs index ea31951..bca8006 100644 --- a/tacacs-plus/src/inner.rs +++ b/tacacs-plus/src/inner.rs @@ -272,7 +272,7 @@ where // if there's data still available, the connection is still open, although // this shouldn't happen in the context of TACACS+ - Ok(1..) => Ok(true), + Ok(_) => Ok(true), }, // nothing ready to read -> connection is still open From f8c99e9467087cb4c11218fc7ab0f31d36d5b40c Mon Sep 17 00:00:00 2001 From: Zane Othman Date: Wed, 11 Sep 2024 11:56:31 -0700 Subject: [PATCH 2/2] chore: update changelog --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38fc805..44f84b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -(no changes yet) +### tacacs-plus + +#### Fixed + +- Use `_` instead of range pattern to prevent breakage on older Rust versions (<=1.74) ## [0.3.1] - 2024-09-11