]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/fmt/mod.rs
Auto merge of #94530 - tmiasko:alignment-impls, r=dtolnay
[rust.git] / library / core / src / fmt / mod.rs
index 700a78cac5ab8abf28a5b088fe517646a3611314..dde9bc383d23c27cc45886a35b6c42cd39c19b36 100644 (file)
@@ -21,7 +21,7 @@
 #[stable(feature = "fmt_flags_align", since = "1.28.0")]
 #[cfg_attr(not(test), rustc_diagnostic_item = "Alignment")]
 /// Possible alignments returned by `Formatter::align`
-#[derive(Debug)]
+#[derive(Copy, Clone, Debug, PartialEq, Eq)]
 pub enum Alignment {
     #[stable(feature = "fmt_flags_align", since = "1.28.0")]
     /// Indication that contents should be left-aligned.