Skip to content

Commit bb6782a

Browse files
ivmarkovthouters
andauthored
cargo fmt PR 376 (#377)
Subject says it all - apply a `cargo fmt` to PR #376. --------- Co-authored-by: Thomas Langewouters <thomas.langewouters@thouters.be>
1 parent d502046 commit bb6782a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rs-matter/src/dm/clusters/gen_diag.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ impl ClusterHandler for GenDiagHandler<'_> {
240240
Ok(())
241241
})?;
242242

243-
parent_builder.take().ok_or_else(|| {
244-
ErrorCode::InvalidAction.into() // TODO
245-
})
243+
parent_builder
244+
.take()
245+
.ok_or_else(|| ErrorCode::ConstraintError.into())
246246
}
247247
ArrayAttributeRead::ReadNone(builder) => builder.end(),
248248
}

0 commit comments

Comments
 (0)