git.delta.rocks / unique-network / refs/commits / 3a5aaa8e258e

difftreelog

fix `ItemData` warnings

Grigoriy Simonov2022-11-01parent: #6a6247b.patch.diff
in: master
Removed `deprecated` attribute from `ItemData` to remove warnings from `cargo check`. `ItemData` is used only in `TokenData` storage and it is deprecated too. Also reason for deprecation is duplicated on `TokenData`.

1 file changed

modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth
137/// for the convenience of database access. Notably contains the token metadata.137/// for the convenience of database access. Notably contains the token metadata.
138#[struct_versioning::versioned(version = 2, upper)]138#[struct_versioning::versioned(version = 2, upper)]
139#[derive(Encode, Decode, Default, TypeInfo, MaxEncodedLen)]139#[derive(Encode, Decode, Default, TypeInfo, MaxEncodedLen)]
140#[deprecated(since = "0.2.0", note = "ItemData is no more contains usefull data")]
141pub struct ItemData {140pub struct ItemData {
142 pub const_data: BoundedVec<u8, CustomDataLimit>,141 pub const_data: BoundedVec<u8, CustomDataLimit>,
143142