Skip to content

Commit 7992f74

Browse files
EliasHolzmanngitbot
authored and
gitbot
committed
impl Default for fmt::FormattingOptions
1 parent 00f5278 commit 7992f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ pub enum DebugAsHex {
285285
///
286286
/// `FormattingOptions` is a [`Formatter`] without an attached [`Write`] trait.
287287
/// It is mainly used to construct `Formatter` instances.
288-
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
288+
#[derive(Copy, Clone, Debug, PartialEq, Eq, Default)]
289289
#[unstable(feature = "formatting_options", issue = "118117")]
290290
pub struct FormattingOptions {
291291
sign: Option<Sign>,

0 commit comments

Comments
 (0)