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
2019-05-09 10:27:08 +02:00
committed by Gavin Wood
parent 57164aa747
commit e67b653c85
4 changed files with 4 additions and 9 deletions
@@ -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)
)