Skip to content

Commit 66a2b13

Browse files
committed
Mark FuncDefn as non_exhaustive
1 parent aaeffa6 commit 66a2b13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hugr-core/src/ops/module.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ impl OpTrait for Module {
5252
/// Children nodes are the body of the definition.
5353
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
5454
#[cfg_attr(test, derive(Arbitrary))]
55+
#[non_exhaustive]
5556
pub struct FuncDefn {
5657
/// Name of function
5758
#[cfg_attr(test, proptest(strategy = "any_nonempty_string()"))]

0 commit comments

Comments
 (0)