Skip to content

Commit

Permalink
cosmetic: format + remove stray TODO (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmondada authored Aug 23, 2023
1 parent e1bbb08 commit a43d046
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/types/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ impl FunctionType {
impl FunctionType {
/// Create a new signature with specified inputs and outputs.
pub fn new(input: impl Into<TypeRow>, output: impl Into<TypeRow>) -> Self {
// TODO rename to just "new"
Self {
input: input.into(),
output: output.into(),
Expand Down
2 changes: 1 addition & 1 deletion src/values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a43d046

Please sign in to comment.