Skip to content

Commit a76e1f6

Browse files
committed
impl Default for fmt::FormattingOptions
1 parent 3bd511f commit a76e1f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub enum DebugAsHex {
269269
///
270270
/// `FormattingOptions` is a [`Formatter`] without an attached [`Write`] trait.
271271
/// It is mainly used to construct `Formatter` instances.
272-
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
272+
#[derive(Copy, Clone, Debug, PartialEq, Eq, Default)]
273273
#[unstable(feature = "formatting_options", issue = "118117")]
274274
pub struct FormattingOptions {
275275
sign: Option<Sign>,

0 commit comments

Comments
 (0)