about summary refs log tree commit diff
diff options
context:
space:
mode:
authorElias Holzmann <9659253+EliasHolzmann@users.noreply.github.com>2024-02-16 00:30:59 +0100
committerElias Holzmann <9659253+EliasHolzmann@users.noreply.github.com>2024-12-05 21:48:35 +0100
commitde073f42a8fd34e2d3470b8ce1d378a0e24819fc (patch)
tree8c49a0e3d8e726222563674e95a3f571ad0a51ff
parenta5a6d40791775d606ad28d20ea464427514db5df (diff)
downloadrust-de073f42a8fd34e2d3470b8ce1d378a0e24819fc.tar.gz
rust-de073f42a8fd34e2d3470b8ce1d378a0e24819fc.zip
impl Default for fmt::FormattingOptions
-rw-r--r--library/core/src/fmt/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs
index a3b907df8ee..42afc903c83 100644
--- a/library/core/src/fmt/mod.rs
+++ b/library/core/src/fmt/mod.rs
@@ -285,7 +285,7 @@ pub enum DebugAsHex {
 ///
 /// `FormattingOptions` is a [`Formatter`] without an attached [`Write`] trait.
 /// It is mainly used to construct `Formatter` instances.
-#[derive(Copy, Clone, Debug, PartialEq, Eq)]
+#[derive(Copy, Clone, Debug, PartialEq, Eq, Default)]
 #[unstable(feature = "formatting_options", issue = "118117")]
 pub struct FormattingOptions {
     sign: Option<Sign>,