about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexey Yerin <yyp@disroot.org>2025-08-02 12:14:34 +0300
committerAlexey Yerin <yyp@disroot.org>2025-08-02 12:14:34 +0300
commit907bd0c617b0d3bf635f5748ed582cebf68fdf71 (patch)
tree97b2fdde375804c9e54a989dc5e0468f1209e871
parenteac027162b330698a74eea2db16f7b82468d421b (diff)
Add parameter names to function types
It's compatible with both old versions of Hare that allowed not naming
the parameter and the upcoming release with (_: type) syntax.
-rw-r--r--gir/parse.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/gir/parse.ha b/gir/parse.ha
index e5bbd8d..934da45 100644
--- a/gir/parse.ha
+++ b/gir/parse.ha
@@ -678,7 +678,7 @@ fn parse_element(
 			const (name, func, data) = elements[i];
 			if (start == name) {
 				match (func) {
-				case let func: *fn(*xml::parser, *opaque) (void | error) =>
+				case let func: *fn(_p: *xml::parser, _d: *opaque) (void | error) =>
 					func(parser, data: *opaque)?;
 				case null =>
 					ignore(parser, name)?;