hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 746d22523c60dfb97497db86545f0afe3b9d6287
parent d003ed892c49810aacc0f81d418692412bcc835b
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri, 26 Feb 2021 15:46:50 -0500

hare::module: close files

Diffstat:
Mhare/module/scan.ha | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/hare/module/scan.ha b/hare/module/scan.ha @@ -90,6 +90,7 @@ fn scan_file( deps: *[]ast::ident, ) ([]u8 | error) = { let f = fs::open(ctx.fs, path, io::mode::READ)?; + defer io::close(f); let sha = sha256::sha256(); //defer! hash::close(sha); let tee = io::tee(f, hash::writer(sha));