Skip to content

Commit

Permalink
Delete needless cfg from Fields::members
Browse files Browse the repository at this point in the history
The whole crate::data module and Fields enum are only available under
this cfg. There is no need to additionally mark the method.
  • Loading branch information
dtolnay committed Aug 11, 2024
1 parent e8a9292 commit 6df0c8a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ impl Fields {
}
}

#[cfg(any(feature = "full", feature = "derive"))]
mod iter_member {
use super::*;
use crate::Member;
Expand All @@ -115,7 +114,6 @@ mod iter_member {
/// Get an iterator over the fields of a struct or variant as [`Member`]s.
/// This iterator can be used to iterate over a named or unnamed struct or
/// variant's fields uniformly.
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
pub fn members(&self) -> impl Iterator<Item = Member> + '_ {
#[derive(Clone)]
struct IterMember<'a> {
Expand Down

0 comments on commit 6df0c8a

Please sign in to comment.