From 4abe5bb1051d7c82550b45fee5bfbe6b88ae116b Mon Sep 17 00:00:00 2001 From: Tsvetomir Dimitrov Date: Wed, 10 Aug 2022 11:48:29 +0300 Subject: [PATCH] fmt --- primitives/api/proc-macro/src/decl_runtime_apis.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/primitives/api/proc-macro/src/decl_runtime_apis.rs b/primitives/api/proc-macro/src/decl_runtime_apis.rs index 854c184cc7143..c5c267ff6a83b 100644 --- a/primitives/api/proc-macro/src/decl_runtime_apis.rs +++ b/primitives/api/proc-macro/src/decl_runtime_apis.rs @@ -400,7 +400,10 @@ fn generate_runtime_decls(decls: &[ItemTrait]) -> Result { 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)]