Progress 5 #1043
GitHub Actions / clippy
failed
Jul 17, 2023 in 0s
clippy
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.69.0 (84c898d65 2023-04-16)
- cargo 1.69.0 (6e9a83356 2023-04-12)
- clippy 0.1.69 (84c898d 2023-04-16)
Annotations
Check failure on line 97 in pallets/xc-asset-config/src/migrations.rs
github-actions / clippy
method `post_upgrade` has an incompatible type for trait
error[E0053]: method `post_upgrade` has an incompatible type for trait
--> pallets/xc-asset-config/src/migrations.rs:97:40
|
97 | fn post_upgrade(state: Vec<u8>) -> Result<(), &'static str> {
| ^^^^^^^^^^^^^^^^^^^^^^^^
| |
| expected `DispatchError`, found `&'static str`
| help: change the output type to match the trait: `std::result::Result<(), frame_support::dispatch::DispatchError>`
|
= note: expected signature `fn(frame_benchmarking::Vec<_>) -> std::result::Result<_, frame_support::dispatch::DispatchError>`
found signature `fn(frame_benchmarking::Vec<_>) -> std::result::Result<_, &'static str>`
Check failure on line 89 in pallets/xc-asset-config/src/migrations.rs
github-actions / clippy
method `pre_upgrade` has an incompatible type for trait
error[E0053]: method `pre_upgrade` has an incompatible type for trait
--> pallets/xc-asset-config/src/migrations.rs:89:25
|
89 | fn pre_upgrade() -> Result<Vec<u8>, &'static str> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| expected `DispatchError`, found `&'static str`
| help: change the output type to match the trait: `std::result::Result<frame_benchmarking::Vec<u8>, frame_support::dispatch::DispatchError>`
|
= note: expected signature `fn() -> std::result::Result<_, frame_support::dispatch::DispatchError>`
found signature `fn() -> std::result::Result<_, &'static str>`
Loading