code: Add docs and deprecation notices #589
clippy results
4 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 4 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.79.0 (129f3b996 2024-06-10)
- cargo 1.79.0 (ffa9cf99a 2024-06-03)
- clippy 0.1.79 (129f3b9 2024-06-10)
Annotations
Check failure on line 1085 in cli/src/main.rs
github-actions / clippy results
expected a `FnMut(u64, u64)` closure, found `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
error[E0277]: expected a `FnMut(u64, u64)` closure, found `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
--> cli/src/main.rs:1085:10
|
1085 | .await
| ^^^^^ expected an `FnMut(u64, u64)` closure, found `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
|
= help: the trait `std::ops::FnMut<(u64, u64)>` is not implemented for `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
note: required by a bound in `magic_wormhole::transfer::ReceiveRequestV2::accept`
--> /home/runner/work/magic-wormhole.rs/magic-wormhole.rs/src/transfer/v2.rs:424:32
|
421 | pub async fn accept(
| ------ required by a bound in this associated function
...
424 | progress_handler: impl FnMut(u64, u64) + 'static,
| ^^^^^^^^^^^^^^^ required by this bound in `ReceiveRequestV2::accept`
Check failure on line 1084 in cli/src/main.rs
github-actions / clippy results
expected a `FnMut(u64, u64)` closure, found `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
error[E0277]: expected a `FnMut(u64, u64)` closure, found `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
--> cli/src/main.rs:1084:5
|
1084 | req.accept(&transit_handler, answer, on_progress, ctrl_c())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an `FnMut(u64, u64)` closure, found `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
|
= help: the trait `std::ops::FnMut<(u64, u64)>` is not implemented for `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
note: required by a bound in `magic_wormhole::transfer::ReceiveRequestV2::accept`
--> /home/runner/work/magic-wormhole.rs/magic-wormhole.rs/src/transfer/v2.rs:424:32
|
421 | pub async fn accept(
| ------ required by a bound in this associated function
...
424 | progress_handler: impl FnMut(u64, u64) + 'static,
| ^^^^^^^^^^^^^^^ required by this bound in `ReceiveRequestV2::accept`
Check failure on line 1084 in cli/src/main.rs
github-actions / clippy results
mismatched types
error[E0308]: mismatched types
--> cli/src/main.rs:1084:42
|
1065 | let on_progress = move |received, _total| {
| ----------------------- the found closure
...
1084 | req.accept(&transit_handler, answer, on_progress, ctrl_c())
| ------ ^^^^^^^^^^^ expected `Offer<AcceptInner>`, found closure
| |
| arguments to this method are incorrect
|
= note: expected struct `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
found closure `{closure@cli/src/main.rs:1065:23: 1065:46}`
note: method defined here
--> /home/runner/work/magic-wormhole.rs/magic-wormhole.rs/src/transfer/v2.rs:421:18
|
421 | pub async fn accept(
| ^^^^^^
Check failure on line 1084 in cli/src/main.rs
github-actions / clippy results
expected a `FnMut(u64, u64)` closure, found `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
error[E0277]: expected a `FnMut(u64, u64)` closure, found `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
--> cli/src/main.rs:1084:34
|
1084 | req.accept(&transit_handler, answer, on_progress, ctrl_c())
| ------ ^^^^^^ expected an `FnMut(u64, u64)` closure, found `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
| |
| required by a bound introduced by this call
|
= help: the trait `std::ops::FnMut<(u64, u64)>` is not implemented for `magic_wormhole::transfer::Offer<magic_wormhole::transfer::AcceptInner>`
note: required by a bound in `magic_wormhole::transfer::ReceiveRequestV2::accept`
--> /home/runner/work/magic-wormhole.rs/magic-wormhole.rs/src/transfer/v2.rs:424:32
|
421 | pub async fn accept(
| ------ required by a bound in this associated function
...
424 | progress_handler: impl FnMut(u64, u64) + 'static,
| ^^^^^^^^^^^^^^^ required by this bound in `ReceiveRequestV2::accept`