aports/testing/hare-scfg/new-hare.patch
2023-05-06 16:30:52 +02:00

28 lines
824 B
Diff

Patch-Source: https://git.sr.ht/~chrisppy/hare-scfg/commit/41f9913d46d6928d902f58756ddf3304bed620d2
--
From 41f9913d46d6928d902f58756ddf3304bed620d2 Mon Sep 17 00:00:00 2001
From: Chris Palmer <chris@red-oxide.org>
Date: Tue, 13 Dec 2022 11:45:32 -0500
Subject: [PATCH] change to fromutf8
---
format/scfg/scan.ha | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/format/scfg/scan.ha b/format/scfg/scan.ha
index b83f040..7d5565e 100644
--- a/format/scfg/scan.ha
+++ b/format/scfg/scan.ha
@@ -22,7 +22,7 @@ export fn next(s: *scanner) (directive | io::EOF | error) = {
const line = match (bufio::scanline(s.in)?) {
case let b: []u8 =>
- yield strings::try_fromutf8(b)?;
+ yield strings::fromutf8(b)?;
case io::EOF =>
if (len(s.blocks) > 0) {
return s.lineno: syntaxerr;
--
2.38.4