diff --git a/cspell.json b/cspell.json index dfd3d43d..68d56b75 100644 --- a/cspell.json +++ b/cspell.json @@ -43,6 +43,7 @@ "interner", "itertools", "ITRS", + "kwarg", "kwargs", "lcons", "linearization", @@ -99,13 +100,6 @@ "walkdir", "wopts" ], - "files": [ - "**/*.rs", - "**/*.md" - ], - "ignoreRegExpList": [ - "HexValues", - "/λ/g", - "/-O/g" - ] + "files": ["**/*.rs", "**/*.md"], + "ignoreRegExpList": ["HexValues", "/λ/g", "/-O/g"] } diff --git a/src/imp/order_kwargs.rs b/src/imp/order_kwargs.rs index 43c433f6..1f4a267a 100644 --- a/src/imp/order_kwargs.rs +++ b/src/imp/order_kwargs.rs @@ -123,7 +123,7 @@ impl Expr { arg.order_kwargs(book)?; } } - _ => {} + _ => return Err(format!("Constructor '{name}' not found.")), }, Expr::MapInit { entries } => { for entry in entries {