summaryrefslogtreecommitdiffstats
path: root/mqtt-tester/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2023-01-09 09:27:39 +0100
committerMatthias Beyer <mail@beyermatthias.de>2023-01-11 09:01:48 +0100
commit80829fccebb78a3509b0c364851811f63b318a83 (patch)
tree691fe99e9398f3f8396c03dfc17d0a6e3b3f427d /mqtt-tester/src
parentd53aeb6a2be4624df29e6ef80126be5ee0fd1922 (diff)
Fix impl for testing invariants, returning Option<_>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'mqtt-tester/src')
-rw-r--r--mqtt-tester/src/command.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mqtt-tester/src/command.rs b/mqtt-tester/src/command.rs
index 7935f02..b1ad5b0 100644
--- a/mqtt-tester/src/command.rs
+++ b/mqtt-tester/src/command.rs
@@ -119,7 +119,7 @@ impl Output {
Ok((_, packet)) => self
.attached_invariants
.iter()
- .map(|inv| inv.test_invariant(&packet))
+ .flat_map(|inv| inv.test_invariant(&packet))
.collect::<Result<Vec<_>, _>>()
.map(|_| ()),
Err(e) => {