about summary refs log tree commit diff
path: root/format
diff options
context:
space:
mode:
authorDrew DeVault <drew@ddevault.org>2025-03-21 10:39:56 +0100
committerAlexey Yerin <yyp@disroot.org>2025-03-21 13:19:35 +0300
commit62d0add1ec396dffae114545fc0427efc6c7153a (patch)
treeecf0922022d417b5e568abbd8869400a5757d843 /format
parent9e2c2490872c6324fac644ca539a65f31c575f26 (diff)
all: nomem updates
Signed-off-by: Drew DeVault <drew@ddevault.org>
Diffstat (limited to 'format')
-rw-r--r--format/fastxml/types.ha2
1 files changed, 1 insertions, 1 deletions
diff --git a/format/fastxml/types.ha b/format/fastxml/types.ha
index f998a97..c0e57d6 100644
--- a/format/fastxml/types.ha
+++ b/format/fastxml/types.ha
@@ -56,7 +56,7 @@ export fn strerror(err: error) const str = {
 	static let buf: [2048]u8 = [0...];
 	match (err) {
 	case let err: syntaxerr =>
-		return fmt::bsprintf(buf, "Syntax error on line {}", err: size);
+		return fmt::bsprintf(buf, "Syntax error on line {}", err: size)!;
 	case utf8::invalid =>
 		return "Document is not valid UTF-8";
 	case let err: io::error =>