commit: ba894102ae802231fcf674769b798b91e84a0abc
parent 7dc4577351cf25a079296777ac592c687758bd10
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 5 May 2022 17:58:02 -0400
io::close can error
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.ha b/main.ha
@@ -24,7 +24,7 @@ fn is_blob(filename: str) (bool | fs::error | io::error) = {
static let buffer: [512]u8 = [0...];
const file = os::open(filename)?;
- defer io::close(file);
+ defer io::close(file)!;
const n = match (io::read(file, buffer)?) {
case let s: size =>