Silent rust compile error

mismatched types: expected `&u64`, found integer
This commit is contained in:
Honza 2023-09-09 19:32:35 +02:00
parent 1b6039c368
commit 5e85c39b78
1 changed files with 1 additions and 1 deletions

View File

@ -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()),