diff options
| author | Elias Holzmann <9659253+EliasHolzmann@users.noreply.github.com> | 2024-02-16 00:30:59 +0100 |
|---|---|---|
| committer | Elias Holzmann <9659253+EliasHolzmann@users.noreply.github.com> | 2024-12-05 21:48:35 +0100 |
| commit | de073f42a8fd34e2d3470b8ce1d378a0e24819fc (patch) | |
| tree | 8c49a0e3d8e726222563674e95a3f571ad0a51ff | |
| parent | a5a6d40791775d606ad28d20ea464427514db5df (diff) | |
| download | rust-de073f42a8fd34e2d3470b8ce1d378a0e24819fc.tar.gz rust-de073f42a8fd34e2d3470b8ce1d378a0e24819fc.zip | |
impl Default for fmt::FormattingOptions
| -rw-r--r-- | library/core/src/fmt/mod.rs | 2 |
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>, |
