hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 228884adc643282a7811d86ce53c0a6f6c971d20
parent 39118a49151c3bec8acfcdd19d6486861347e8fc
Author: Alexey Yerin <yyp@disroot.org>
Date:   Mon, 13 Sep 2021 20:16:09 +0300

os::exec: fix non-exhaustive match

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mos/exec/cmd.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/os/exec/cmd.ha b/os/exec/cmd.ha @@ -21,8 +21,8 @@ export fn cmd(name: str, args: str...) (command | error) = { let cmd = command { platform: platform_cmd = if (strings::contains(name, '/')) match (open(name)) { - err: errors::opaque => return nocmd, p: platform_cmd => p, + * => return nocmd, } else match (lookup(name)) { void => return nocmd, p: platform_cmd => p,