Silence the deprecated warning in generated code (#2513)

`impl_runtime_apis!` is not only implementing the apis, it also calls
them internally and thus generates the warning. So, we just allow
depracted calls in the generated code.
This commit is contained in:
Bastian Köcher authored and Gavin Wood committed 2019-05-09 10:27:08 +02:00
1 parent 57164aa747
commit e67b653c85
4 files changed
+4 -9

No files matched your search

@@ -82,6 +82,7 @@ fn generate_impl_call(
};
)*
#[allow(deprecated)]
let output = <#runtime as #impl_trait>::#fn_name(#( #pborrow #pnames2 ),*);
#c::runtime_api::Encode::encode(&output)
)