Skip to content

Commit c895646

Browse files
committed
refactor: derive Debug and Clone for Classification and Elements
- Add Debug and Clone derive to Classification enum - Add Debug and Clone derive to Elements struct Fixes #14
1 parent 3a2b2c7 commit c895646

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tle.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ impl DecimalPointAssumedRepresentation for [u8] {
225225
}
226226

227227
/// A satellite's elements classification
228+
#[derive(Debug, Clone)]
228229
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
229230
pub enum Classification {
230231
/// Declassfied objects or objects without a classification
@@ -279,6 +280,7 @@ pub enum Classification {
279280
/// )?;
280281
/// # Ok(())
281282
/// # }
283+
#[derive(Debug, Clone)]
282284
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
283285
pub struct Elements {
284286
/// The name associated with the satellite

0 commit comments

Comments
 (0)