Skip to content

Commit

Permalink
fix for MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Ha committed Oct 7, 2023
1 parent 0ce566b commit 78070fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ where
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
let name = T::BITFLAGS_TYPE_NAME;
let bits = DebugBinaryFormatter(&self.val);
let iter = (!self.is_empty()).then_some(FlagFormatter(self.iter()));
let iter = (!self.is_empty()).then(|| FlagFormatter(self.iter()));

if fmt.alternate() {
// Pretty-printed tuples are ugly and hard to read, so use struct format
Expand Down

0 comments on commit 78070fa

Please sign in to comment.