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

Commit

Permalink
Style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tdimitrov committed Aug 24, 2023
1 parent 60dbe18 commit 436f7c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions primitives/api/proc-macro/src/impl_runtime_apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -888,8 +888,10 @@ 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
.into_iter()
.next()
.map(|(feature, name, _)| (feature, name)))
}

/// Represents an API version.
Expand Down

0 comments on commit 436f7c8

Please sign in to comment.