feat(esplora): update to use SyncRequest and FullScanRequest #920
clippy
5 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 5 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.75.0 (82e1608df 2023-12-21)
- cargo 1.75.0 (1d8b05cdd 2023-11-20)
- clippy 0.1.75 (82e1608 2023-12-21)
Annotations
Check failure on line 199 in crates/esplora/tests/async_ext.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> crates/esplora/tests/async_ext.rs:199:63
|
199 | let (graph_update, active_indices) = env.client.full_scan(keychains, 5, 1).await?;
| --------- ^^^^^^^^^ expected `FullScanRequest<_, _>`, found `BTreeMap<{integer}, Vec<...>>`
| |
| arguments to this method are incorrect
|
= note: expected struct `bdk_chain::spk_client::FullScanRequest<_, _>`
found struct `std::collections::BTreeMap<{integer}, std::vec::Vec<(u32, esplora_client::ScriptBuf)>>`
note: method defined here
--> /home/runner/work/bdk/bdk/crates/esplora/src/async_ext.rs:53:14
|
53 | async fn full_scan<K: Ord + Clone + Send>(
| ^^^^^^^^^
Check failure on line 194 in crates/esplora/tests/async_ext.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> crates/esplora/tests/async_ext.rs:194:63
|
194 | let (graph_update, active_indices) = env.client.full_scan(keychains.clone(), 4, 1).await?;
| --------- ^^^^^^^^^^^^^^^^^ expected `FullScanRequest<_, _>`, found `BTreeMap<{integer}, Vec<...>>`
| |
| arguments to this method are incorrect
|
= note: expected struct `bdk_chain::spk_client::FullScanRequest<_, _>`
found struct `std::collections::BTreeMap<{integer}, std::vec::Vec<(u32, esplora_client::ScriptBuf)>>`
note: method defined here
--> /home/runner/work/bdk/bdk/crates/esplora/src/async_ext.rs:53:14
|
53 | async fn full_scan<K: Ord + Clone + Send>(
| ^^^^^^^^^
Check failure on line 172 in crates/esplora/tests/async_ext.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> crates/esplora/tests/async_ext.rs:172:63
|
172 | let (graph_update, active_indices) = env.client.full_scan(keychains.clone(), 3, 1).await?;
| --------- ^^^^^^^^^^^^^^^^^ expected `FullScanRequest<_, _>`, found `BTreeMap<{integer}, Vec<...>>`
| |
| arguments to this method are incorrect
|
= note: expected struct `bdk_chain::spk_client::FullScanRequest<_, _>`
found struct `std::collections::BTreeMap<{integer}, std::vec::Vec<(u32, esplora_client::ScriptBuf)>>`
note: method defined here
--> /home/runner/work/bdk/bdk/crates/esplora/src/async_ext.rs:53:14
|
53 | async fn full_scan<K: Ord + Clone + Send>(
| ^^^^^^^^^
Check failure on line 169 in crates/esplora/tests/async_ext.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> crates/esplora/tests/async_ext.rs:169:63
|
169 | let (graph_update, active_indices) = env.client.full_scan(keychains.clone(), 2, 1).await?;
| --------- ^^^^^^^^^^^^^^^^^ expected `FullScanRequest<_, _>`, found `BTreeMap<{integer}, Vec<...>>`
| |
| arguments to this method are incorrect
|
= note: expected struct `bdk_chain::spk_client::FullScanRequest<_, _>`
found struct `std::collections::BTreeMap<{integer}, std::vec::Vec<(u32, esplora_client::ScriptBuf)>>`
note: method defined here
--> /home/runner/work/bdk/bdk/crates/esplora/src/async_ext.rs:53:14
|
53 | async fn full_scan<K: Ord + Clone + Send>(
| ^^^^^^^^^
Check failure on line 104 in crates/esplora/tests/async_ext.rs
github-actions / clippy
this method takes 2 arguments but 4 arguments were supplied
error[E0061]: this method takes 2 arguments but 4 arguments were supplied
--> crates/esplora/tests/async_ext.rs:104:10
|
104 | .sync(
| ^^^^
105 | misc_spks.into_iter(),
106 | vec![].into_iter(),
| ------------------ unexpected argument of type `std::vec::IntoIter<_>`
107 | vec![].into_iter(),
| ------------------ unexpected argument of type `std::vec::IntoIter<_>`
|
note: expected `SyncRequest`, found `IntoIter<ScriptBuf, 2>`
--> crates/esplora/tests/async_ext.rs:105:13
|
105 | misc_spks.into_iter(),
| ^^^^^^^^^^^^^^^^^^^^^
= note: expected struct `bdk_chain::spk_client::SyncRequest`
found struct `std::array::IntoIter<esplora_client::ScriptBuf, 2>`
note: method defined here
--> /home/runner/work/bdk/bdk/crates/esplora/src/async_ext.rs:76:14
|
76 | async fn sync(
| ^^^^
help: remove the extra arguments
|
105 - misc_spks.into_iter(),
105 + /* bdk_chain::spk_client::SyncRequest */,
|