@@ -110,7 +110,7 @@ impl FormatParse for FormatSign {
110110 }
111111}
112112
113- #[ derive( Debug , PartialEq ) ]
113+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
114114pub enum FormatGrouping {
115115 Comma ,
116116 Underscore ,
@@ -136,7 +136,7 @@ impl From<&FormatGrouping> for char {
136136 }
137137}
138138
139- #[ derive( Debug , PartialEq ) ]
139+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
140140pub enum FormatType {
141141 String ,
142142 Binary ,
@@ -199,7 +199,7 @@ impl FormatParse for FormatType {
199199 }
200200}
201201
202- #[ derive( Debug , PartialEq ) ]
202+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
203203pub struct FormatSpec {
204204 conversion : Option < FormatConversion > ,
205205 fill : Option < CodePoint > ,
@@ -845,7 +845,7 @@ impl Deref for AsciiStr<'_> {
845845 }
846846}
847847
848- #[ derive( Debug , PartialEq ) ]
848+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
849849pub enum FormatSpecError {
850850 DecimalDigitsTooMany ,
851851 PrecisionTooBig ,
@@ -862,7 +862,7 @@ pub enum FormatSpecError {
862862 NotImplemented ( char , & ' static str ) ,
863863}
864864
865- #[ derive( Debug , PartialEq ) ]
865+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
866866pub enum FormatParseError {
867867 UnmatchedBracket ,
868868 MissingStartBracket ,
0 commit comments