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)) }) })