~sircmpwn/hare-dev

hare-xml: change dynamic_stream to stream due to stdlib change v1 APPLIED

Chris Palmer: 1
 change dynamic_stream to stream due to stdlib change

 2 files changed, 6 insertions(+), 4 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/31478/mbox | git am -3
Learn more about email & git

[PATCH hare-xml] change dynamic_stream to stream due to stdlib change Export this patch

Signed-off-by: Chris Palmer <chris@red-oxide.org>
---
 format/xml/parser.ha | 3 ++-
 format/xml/types.ha  | 7 ++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/format/xml/parser.ha b/format/xml/parser.ha
index af8f9a5..dd5226d 100644
--- a/format/xml/parser.ha
+++ b/format/xml/parser.ha
@@ -1,5 +1,6 @@
// License: MPL-2.0
// (c) 2022 Alexey Yerin <yyp@disroot.org>
// (c) 2022 Chris Palmer <chris@red-oxide.org>
// (c) 2021 Drew DeVault <sir@cmpwn.com>
// (c) 2021 Eyal Sawady <ecs@d2evs.net>
// (c) 2022 Sebastian <sebastian@sebsite.pw>
@@ -400,7 +401,7 @@ fn scan_namedent(par: *parser) (rune | error) = {
	return par.line: syntaxerr;
};

fn scan_name(par: *parser, buf: *strio::dynamic_stream) (str | error) = {
fn scan_name(par: *parser, buf: *strio::stream) (str | error) = {
	strio::reset(buf);

	const rn = match (bufio::scanrune(par.in)?) {
diff --git a/format/xml/types.ha b/format/xml/types.ha
index db6255c..6c340d4 100644
--- a/format/xml/types.ha
+++ b/format/xml/types.ha
@@ -1,5 +1,6 @@
// License: MPL-2.0
// (c) 2022 Alexey Yerin <yyp@disroot.org>
// (c) 2022 Chris Palmer <chris@red-oxide.org>
// (c) 2021 Drew DeVault <sir@cmpwn.com>
// (c) 2021 Eyal Sawady <ecs@d2evs.net>
use bufio;
@@ -18,9 +19,9 @@ export type parser = struct {
	line: size,

	// strio buffers:
	namebuf: strio::dynamic_stream,
	entbuf: strio::dynamic_stream,
	textbuf: strio::dynamic_stream,
	namebuf: strio::stream,
	entbuf: strio::stream,
	textbuf: strio::stream,
};

export type state = enum {
-- 
2.35.2
Thanks!

To git@git.sr.ht:~sircmpwn/hare-xml
   407b4bc..2214874  master -> master