Commit Diff


commit - 249da5d44ed04e0b53c5a71d3934193d834791f3
commit + 82d62f1006b9df033509bb03d9cf3b550fe2d7bc
blob - d16878f8316bc82d8431fed3e3d2e7cd1d1c610d
blob + cc4598b14dc65e776e011b82629b41812d796dd5
--- src/types.rs
+++ src/types.rs
@@ -169,9 +169,14 @@ impl std::fmt::Display for TimeAmount {
 /// A task can either be [`Incomplete`] or [`Complete`]. Should the task be complete, there can
 /// optionally be a completion date associated with it, marking the date of completion.
 ///
+/// [`Completion`] derives [`Copy`] because [`NaiveDate`], the underlying type of the [`Complete`]
+/// variant, derives copy as well.
+///
 /// [`Incomplete`]: Self::Incomplete
 /// [`Complete`]: Self::Complete
-#[derive(Debug, PartialEq, Eq)]
+/// [`Copy`]: std::marker::Copy
+/// [`NaiveDate`]: chrono::naive::NaiveDate
+#[derive(Debug, Copy, Clone, PartialEq, Eq)]
 pub enum Completion {
     Incomplete,
     Complete(Option<NaiveDate>),