commit 46cec631828b1840c68b3edfb6720b9c7f0b07e5
parent b0251a59f1a0f77c9f54f8e94dd9f23cde589213
Author: Ajay R <ar324@protonmail.com>
Date: Thu, 28 Apr 2022 16:48:01 +0000
encoding::base32: propagate error instead of ! in encode_closer
Signed-off-by: Ajay R <ar324@protonmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/encoding/base32/base32.ha b/encoding/base32/base32.ha
@@ -160,7 +160,7 @@ fn encode_closer(s: *io::stream) (void | io::error) = {
for (let i = 0z; i < np; i += 1) {
encb[7 - i] = PADDING;
};
- io::writeall(s.out, encb)!;
+ io::writeall(s.out, encb)?;
};
// Encodes a byte slice in base-32, using the given encoding, returning a slice