~sircmpwn/hare-dev

hare-json: Bump usage of bufio::read_rune v1 APPLIED

Willow Barraco: 1
 Bump usage of bufio::read_rune

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/hare-dev/patches/44859/mbox | git am -3
Learn more about email & git

[PATCH hare-json] Bump usage of bufio::read_rune Export this patch

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
---
 encoding/json/lex.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/encoding/json/lex.ha b/encoding/json/lex.ha
index a523db1..3545cc3 100644
--- a/encoding/json/lex.ha
+++ b/encoding/json/lex.ha
@@ -339,7 +339,7 @@ fn nextrune(lex: *lexer) (rune | io::EOF | error) = {
		};
		return r;
	};
	match (bufio::scanrune(lex.src)) {
	match (bufio::read_rune(lex.src)) {
	case let err: io::error =>
		return err;
	case utf8::invalid =>
-- 
2.42.0
Thanks!

To git@git.sr.ht:~sircmpwn/hare-json
   4af2d11..e24e5dc  master -> master
It looks like hare-json needs a fair bit more work here to be made up to
date with the latest language/stdlib changes, can you write a more
comprehensive patch?