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

Commit

Permalink
Update primitives/api/proc-macro/src/impl_runtime_apis.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Bastian Köcher <git@kchr.de>
  • Loading branch information
tdimitrov and bkchr authored Aug 23, 2023
1 parent 7a6fd70 commit 4da20a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions primitives/api/proc-macro/src/impl_runtime_apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,7 @@ fn extract_cfg_api_version(attrs: &Vec<Attribute>, span: Span) -> Result<Option<
return Err(err)
}

let result = cfg_api_version_attr.drain(..).next().map(|(feature, name, _)| (feature, name));
Ok(result)
Ok(cfg_api_version_attr.drain(..).next().map(|(feature, name, _)| (feature, name)))
}

/// Represents an API version.
Expand Down

0 comments on commit 4da20a7

Please sign in to comment.