Skip to content

Commit 7046023

Browse files
committed
Simplify how has_bonus_display is accumulated
1 parent 9cc1d0b commit 7046023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impl/src/fmt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ impl Display<'_> {
102102
Some(_) => Trait::Display,
103103
None => {
104104
bonus_display = true;
105+
has_bonus_display = true;
105106
Trait::Display
106107
}
107108
};
@@ -144,7 +145,6 @@ impl Display<'_> {
144145
} else {
145146
binding_value.into_token_stream()
146147
};
147-
has_bonus_display |= bonus_display;
148148
bindings.push((formatvar.to_local(), wrapped_binding_value));
149149
}
150150

0 commit comments

Comments
 (0)