From 8f65b880514fbf6f0c8d17dcb56084c067bb90c9 Mon Sep 17 00:00:00 2001 From: veeso Date: Mon, 14 Oct 2024 09:27:48 +0200 Subject: [PATCH] fix: subclause_and_not! --- CHANGELOG.md | 7 +++++++ Cargo.toml | 2 +- README.md | 2 +- src/macros.rs | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 036b320..38cd2e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog - [Changelog](#changelog) + - [2.0.2](#202) - [2.0.1](#201) - [2.0.0](#200) - [1.9.2](#192) @@ -37,6 +38,12 @@ --- +## 2.0.2 + +Released on 14/10/2024 + +- Added `subclause_and_not!` + ## 2.0.1 Released on 13/10/2024 diff --git a/Cargo.toml b/Cargo.toml index 649268d..205d1f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tuirealm" -version = "2.0.1" +version = "2.0.2" authors = ["Christian Visintin"] edition = "2021" categories = ["command-line-utilities"] diff --git a/README.md b/README.md index b200bb6..1fee0fa 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@

Developed by @veeso

-

Current version: 2.0.1 (13/10/2024)

+

Current version: 2.0.2 (14/10/2024)

{ + SubClause::not(SubClause::IsMounted($id)) + }; + ($id:expr, $($rest:expr),+) => { + SubClause::and( + SubClause::not(SubClause::IsMounted($id)), + subclause_and_not!($($rest),+) + ) + }; +} + /// A macro to generate a chain of [`crate::SubClause::Or`] from a list of /// Ids with the case [`crate::SubClause::IsMounted`] for every id. ///