Skip to content

Commit 5d8d080

Browse files
committed
Add some Copy derivations
1 parent b93ea81 commit 5d8d080

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

swiftnav/src/coords.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ impl Default for AzimuthElevation {
525525
/// Complete coordinate used for transforming between reference frames
526526
///
527527
/// Velocities are optional, but when present they will be transformed
528-
#[derive(Debug, PartialEq, PartialOrd, Clone)]
528+
#[derive(Debug, PartialEq, PartialOrd, Clone, Copy)]
529529
pub struct Coordinate {
530530
reference_frame: ReferenceFrame,
531531
position: ECEF,

swiftnav/src/reference_frame.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub enum ReferenceFrame {
111111
/// millimeters, the rotations are in milliarcseconds, and
112112
/// the scaling is in parts per billion. We also follow the
113113
/// IERS convention for the sign of the rotation terms.
114-
#[derive(Debug, PartialEq, PartialOrd, Clone)]
114+
#[derive(Debug, PartialEq, PartialOrd, Clone, Copy)]
115115
struct TimeDependentHelmertParams {
116116
tx: f64,
117117
tx_dot: f64,
@@ -190,7 +190,7 @@ impl TimeDependentHelmertParams {
190190
}
191191

192192
/// A transformation from one reference frame to another.
193-
#[derive(Debug, PartialEq, PartialOrd, Clone)]
193+
#[derive(Debug, PartialEq, PartialOrd, Clone, Copy)]
194194
pub struct Transformation {
195195
from: ReferenceFrame,
196196
to: ReferenceFrame,

0 commit comments

Comments
 (0)