Fix version check for renamed runtime api methods (#2190)

This commit is contained in:
Bastian Köcher
2019-04-03 12:38:25 +02:00
committed by GitHub
parent eec6f3b901
commit 2c401652f0
@@ -389,7 +389,7 @@ fn generate_call_api_at_calls(decl: &ItemTrait) -> Result<TokenStream> {
#(
// Check if we need to call the function by an old name.
if version.apis.iter().any(|(s, v)| {
s == &ID && #versions < *v
s == &ID && *v < #versions
}) {
return call_runtime_at.call_api_at::<R, fn() -> _>(
at,