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

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed Aug 10, 2022
1 parent 23c27ee commit 8cc05da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion primitives/api/proc-macro/src/decl_runtime_apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,10 @@ fn generate_runtime_decls(decls: &[ItemTrait]) -> Result<TokenStream> {
let versioned_api_traits = generate_versioned_api_traits(decl.clone(), methods_by_version);

let main_api_ident = decl.ident.clone();
let versioned_ident = &versioned_api_traits.first().expect("There should always be at least one version.").ident;
let versioned_ident = &versioned_api_traits
.first()
.expect("There should always be at least one version.")
.ident;

result.push(quote!(
#[doc(hidden)]
Expand Down

0 comments on commit 8cc05da

Please sign in to comment.