diff --git a/src/compiler/rust/canister/src/upload_file/hash.rs b/src/compiler/rust/canister/src/upload_file/hash.rs index c6631425d5..3d1ac6aac0 100644 --- a/src/compiler/rust/canister/src/upload_file/hash.rs +++ b/src/compiler/rust/canister/src/upload_file/hash.rs @@ -101,7 +101,7 @@ fn load_hashes() -> Result>, std::io::Error> { let file_hash_path = get_file_hash_path(); let buffer = std::fs::read(file_hash_path)?; - serde_json::from_slice(&buffer)? + Ok(serde_json::from_slice(&buffer)?) } fn save_hashes(file_hashes: &HashMap>) -> Result<(), std::io::Error> { diff --git a/src/compiler/rust/canister/src/upload_file/mod.rs b/src/compiler/rust/canister/src/upload_file/mod.rs index da7cb6ee61..b3ef987bb7 100644 --- a/src/compiler/rust/canister/src/upload_file/mod.rs +++ b/src/compiler/rust/canister/src/upload_file/mod.rs @@ -6,8 +6,7 @@ mod hash; mod reset; mod upload_file_chunk; -pub use hash::get_file_hash; -pub use hash::init_hashes; +pub use hash::{get_file_hash, init_hashes}; pub use reset::reset_for_new_upload; pub use upload_file_chunk::upload_file_chunk; diff --git a/static_canister_template.wasm b/static_canister_template.wasm index 21733c29b4..9066a61877 100644 Binary files a/static_canister_template.wasm and b/static_canister_template.wasm differ