diff --git a/src/types/signature.rs b/src/types/signature.rs index 035413f1f..0e83f4037 100644 --- a/src/types/signature.rs +++ b/src/types/signature.rs @@ -88,7 +88,6 @@ impl FunctionType { impl FunctionType { /// Create a new signature with specified inputs and outputs. pub fn new(input: impl Into, output: impl Into) -> Self { - // TODO rename to just "new" Self { input: input.into(), output: output.into(), diff --git a/src/values.rs b/src/values.rs index 4d6e4b479..1e7fceef1 100644 --- a/src/values.rs +++ b/src/values.rs @@ -30,7 +30,7 @@ impl PrimValue { match self { PrimValue::Extension(e) => format!("const:custom:{}", e.0.name()), PrimValue::Function(h) => { - let Some(t) = h.get_function_type() else { + let Some(t) = h.get_function_type() else { panic!("HUGR root node isn't a valid function parent."); }; format!("const:function:[{}]", t)