From 02e827d8499290201a86726b658f8571327b5f18 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 26 Apr 2022 17:58:54 -0400 Subject: mixer: io::close can error Signed-off-by: Sebastian --- sdl2/mixer/samples.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdl2/mixer') diff --git a/sdl2/mixer/samples.ha b/sdl2/mixer/samples.ha index 2dce2ef..0a45151 100644 --- a/sdl2/mixer/samples.ha +++ b/sdl2/mixer/samples.ha @@ -23,7 +23,7 @@ export fn Mix_LoadWAV_RW(src: io::handle) (*Mix_Chunk | sdl2::error) = { // Loads a sample from a file path. export fn load_file(src: str) (*Mix_Chunk | fs::error | sdl2::error) = { const file = os::open(src)?; - defer io::close(file); + defer io::close(file)!; return Mix_LoadWAV_RW(file); }; -- cgit v1.2.3