Skip to content

feat: api events

feat: api events #364

Triggered via pull request July 31, 2024 20:44
@DaanvdplasDaanvdplas
opened #153
Status Success
Total duration 14s
Artifacts

lint-pr.yml

on: pull_request_target
Validate PR title for conventional commit compliance
4s
Validate PR title for conventional commit compliance
Fit to window
Zoom out
Zoom in

Annotations

2 errors
use of moved value: `id`: pallets/api/src/fungibles/mod.rs#L366
error[E0382]: use of moved value: `id` --> pallets/api/src/fungibles/mod.rs:366:45 | 365 | AssetsOf::<T>::set_metadata(origin, id.into(), name.clone(), symbol.clone(), decimals)?; | ------ `id` moved due to this method call 366 | Self::deposit_event(Event::SetMetadata { id, name, symbol, decimals }); | ^^ value used here after move | note: `std::convert::Into::into` takes ownership of the receiver `self`, which moves `id` --> /home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/convert/mod.rs:450:13 | 450 | fn into(self) -> T; | ^^^^ = note: move occurs because `id` has type `<T as pallet_assets::Config<<T as fungibles::pallet::Config>::AssetsInstance>>::AssetId`, which does not implement the `Copy` trait help: you can `clone` the value and consume it, but this might not be your desired behavior | 365 | AssetsOf::<T>::set_metadata(origin, id.clone().into(), name.clone(), symbol.clone(), decimals)?; | ++++++++
use of moved value: `id`: pallets/api/src/fungibles/mod.rs#L333
error[E0382]: use of moved value: `id` --> pallets/api/src/fungibles/mod.rs:333:40 | 328 | id.into(), | ------ `id` moved due to this method call ... 333 | Self::deposit_event(Event::Create { id, owner, admin }); | ^^ value used here after move | note: `std::convert::Into::into` takes ownership of the receiver `self`, which moves `id` --> /home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/convert/mod.rs:450:13 | 450 | fn into(self) -> T; | ^^^^ = note: move occurs because `id` has type `<T as pallet_assets::Config<<T as fungibles::pallet::Config>::AssetsInstance>>::AssetId`, which does not implement the `Copy` trait help: you can `clone` the value and consume it, but this might not be your desired behavior | 328 | id.clone().into(), | ++++++++