From 907bd0c617b0d3bf635f5748ed582cebf68fdf71 Mon Sep 17 00:00:00 2001 From: Alexey Yerin Date: Sat, 2 Aug 2025 12:14:34 +0300 Subject: 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. --- gir/parse.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?; -- cgit 1.3.0-6-gf8a5