From 1ba8d636f1903d341c969992100673bcb3a4091a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 11 Jan 2024 16:37:26 -0800 Subject: [PATCH] not sure if this drops file earlier --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 455d317..53f4067 100644 --- a/src/main.rs +++ b/src/main.rs @@ -799,7 +799,8 @@ async fn decompile_history_into_git(config:DecompileHistoryConfig)->AResult<()>{ let mut file_path=config.input_folder.clone(); tokio::task::spawn(async move{ file_path.push(format!("{}_v{}.rbxl",asset_version.assetId,asset_version.assetVersionNumber)); - let contents=generate_decompiled_context(std::fs::File::open(file_path)?)?; + let file=std::fs::File::open(file_path)?; + let contents=generate_decompiled_context(file)?; Ok::<_,anyhow::Error>((asset_version,contents)) }) })