Skip to content

Commit 42eb2ee

Browse files
author
Zane
authored
fix: non-exhaustive pattern in is_connection_open on old Rust versions (#42)
1 parent 7a1164b commit 42eb2ee

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [Unreleased]
1010

11-
(no changes yet)
11+
### tacacs-plus
12+
13+
#### Fixed
14+
15+
- Use `_` instead of range pattern to prevent breakage on older Rust versions (<=1.74)
1216

1317
## [0.3.1] - 2024-09-11
1418

tacacs-plus/src/inner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ where
272272

273273
// if there's data still available, the connection is still open, although
274274
// this shouldn't happen in the context of TACACS+
275-
Ok(1..) => Ok(true),
275+
Ok(_) => Ok(true),
276276
},
277277

278278
// nothing ready to read -> connection is still open

0 commit comments

Comments
 (0)