Skip to content

Commit

Permalink
fix: non-exhaustive pattern in is_connection_open on old Rust versi…
Browse files Browse the repository at this point in the history
…ons (#42)
  • Loading branch information
Zane authored Sep 11, 2024
1 parent 7a1164b commit 42eb2ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tacacs-plus/src/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42eb2ee

Please sign in to comment.