Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Aug 23, 2024
1 parent 108a390 commit f2614ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
fail-fast: false
matrix:
version:
# - 1.66.0 # MSRV
- 1.75.0 # MSRV
- stable
- nightly

Expand Down
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## [3.1.0] - 2024-08-23

* Derive Hash for the QoS enum #175

## [3.0.0] - 2024-05-28

* Switch to individual ntex_* crates
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "ntex-mqtt"
version = "3.0.0"
version = "3.1.0"
authors = ["ntex contributors <[email protected]>"]
description = "Client and Server framework for MQTT v5 and v3.1.1 protocols"
documentation = "https://docs.rs/ntex-mqtt"
repository = "https://github.com/ntex-rs/ntex-mqtt.git"
categories = ["network-programming"]
keywords = ["MQTT", "IoT", "messaging"]
license = "MIT OR Apache-2.0"
exclude = [".gitignore", ".travis.yml", ".cargo/config"]
edition = "2021"
rust-version = "1.75"

[package.metadata.docs.rs]
features = ["ntex/tokio"]
Expand Down
4 changes: 2 additions & 2 deletions src/topic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl TopicFilterLevel {
fn is_valid(&self) -> bool {
match *self {
TopicFilterLevel::Normal(ref s) | TopicFilterLevel::System(ref s) => {
!s.contains(|c| c == '+' || c == '#')
!s.contains(['+', '#'])
}
_ => true,
}
Expand Down Expand Up @@ -208,7 +208,7 @@ impl TryFrom<ByteString> for TopicFilter {
"#" => Ok(TopicFilterLevel::MultiWildcard),
"" => Ok(TopicFilterLevel::Blank),
_ => {
if level.contains(|c| c == '+' || c == '#') {
if level.contains(['+', '#']) {
Err(TopicFilterError::InvalidLevel)
} else if idx == 0 && is_system(level) {
Ok(TopicFilterLevel::System(recover_bstr(&value, level)))
Expand Down

0 comments on commit f2614ef

Please sign in to comment.