Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix unidiomatic Rust usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed Jul 29, 2022
1 parent 1a1ae1c commit d06cb8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions primitives/api/proc-macro/src/impl_runtime_apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ fn generate_api_impl_for_runtime(impls: &[ItemImpl]) -> Result<TokenStream> {

impl_.trait_.as_mut().unwrap().1 = trait_;
impl_.attrs = filter_cfg_attrs(&impl_.attrs);
if trait_api_ver.is_some() {
impls_prepared.push(generate_dummy_trait_impl(&impl_, trait_api_ver.unwrap()));
if let Some(api_ver) = trait_api_ver {
impls_prepared.push(generate_dummy_trait_impl(&impl_, api_ver));
}
impls_prepared.push(impl_);
}
Expand Down

0 comments on commit d06cb8d

Please sign in to comment.