Skip to content

Commit 7baa225

Browse files
committed
clippy
1 parent 69b33d2 commit 7baa225

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hugr-model/src/v0/ast/hugr.pest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ node = {
6868
node_dfg = { "(" ~ "dfg" ~ port_lists? ~ signature? ~ meta* ~ region* ~ ")" }
6969
node_cfg = { "(" ~ "cfg" ~ port_lists? ~ signature? ~ meta* ~ region* ~ ")" }
7070
node_block = { "(" ~ "block" ~ port_lists? ~ signature? ~ meta* ~ region* ~ ")" }
71-
node_define_func = { "(" ~ "define-func" ~ symbol ~ meta* ~ region* ~ ")" }
71+
node_define_func = { "(" ~ "define-func" ~ symbol? ~ meta* ~ region* ~ ")" }
7272
node_declare_func = { "(" ~ "declare-func" ~ symbol ~ meta* ~ ")" }
7373
node_define_alias = { "(" ~ "define-alias" ~ symbol ~ term ~ meta* ~ ")" }
7474
node_declare_alias = { "(" ~ "declare-alias" ~ symbol ~ meta* ~ ")" }

hugr-passes/src/dead_funcs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl<H: HugrMut<Node = Node>> ComposablePass<H> for RemoveDeadFuncsPass {
151151
///
152152
/// `entry_points` may provide a list of entry points, which must be [`FuncDefn`]s (children of the root).
153153
/// * If the [HugrView::entrypoint] is the module root, then any [`FuncDefn`] children with a [link_name]
154-
/// will also be considered an entry point
154+
/// will also be considered an entry point
155155
/// * otherwise, the [HugrView::entrypoint] itself will.
156156
///
157157
/// # Errors

0 commit comments

Comments
 (0)