Change decl_storage! to import the storage traits automatically (#3674)

* decl_storage imports needed traits

* bump impl_version

* Update srml/system/src/lib.rs

Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com>

* Update srml/system/src/lib.rs

Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
This commit is contained in:
Ashley
2019-09-24 20:05:15 +12:00
committed by Bastian Köcher
parent a7cd458544
commit 5c39f588be
27 changed files with 30 additions and 31 deletions
@@ -155,6 +155,13 @@ pub fn decl_storage_impl(input: TokenStream) -> TokenStream {
} = instance_opts;
let expanded = quote! {
use #scrate::{
StorageValue as _,
StorageMap as _,
StorageLinkedMap as _,
StorageDoubleMap as _
};
#scrate_decl
#decl_storage_items
#visibility trait #storetype {