From 5e85c39b78f5ac0b9d466c8cdc7d9a6af47b0cb8 Mon Sep 17 00:00:00 2001 From: Honza Date: Sat, 9 Sep 2023 19:32:35 +0200 Subject: [PATCH] Silent rust compile error mismatched types: expected `&u64`, found integer --- backend-lib/src/main/rust/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend-lib/src/main/rust/lib.rs b/backend-lib/src/main/rust/lib.rs index 4b165b34..3bb40e9f 100644 --- a/backend-lib/src/main/rust/lib.rs +++ b/backend-lib/src/main/rust/lib.rs @@ -1173,7 +1173,7 @@ pub unsafe extern "C" fn Java_cash_z_ecc_android_sdk_internal_jni_RustBackend_ge match db_data .get_wallet_summary(0) .map_err(|e| format_err!("Error while fetching scan progress: {}", e))? - .and_then(|summary| summary.scan_progress().filter(|r| r.denominator() > 0)) + .and_then(|summary| summary.scan_progress().filter(|r| r.denominator() > &0)) { Some(progress) => encode_scan_progress(&env, progress), None => Ok(ptr::null_mut()),