Skip to content

Commit 7f6b65f

Browse files
committed
chore: fix formatting
1 parent d9bb0c0 commit 7f6b65f

File tree

16 files changed

+34
-33
lines changed

16 files changed

+34
-33
lines changed

crates/lox-frames/src/dynamic.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,23 @@
99
use std::str::FromStr;
1010

1111
use lox_bodies::{DynOrigin, Origin, TryRotationalElements};
12-
use lox_time::{Time, julian_dates::JulianDate, time_scales::{Tdb, TimeScale, TryToScale}};
12+
use lox_time::{
13+
Time,
14+
julian_dates::JulianDate,
15+
time_scales::{Tdb, TimeScale, TryToScale},
16+
};
1317
use thiserror::Error;
1418

1519
use crate::{
1620
frames::{Cirf, Icrf, Itrf, Tirf},
17-
traits::{ReferenceFrame, TryQuasiInertial, TryBodyFixed,
18-
NonQuasiInertialFrameError, NonBodyFixedFrameError, TryRotateTo},
21+
traits::{
22+
NonBodyFixedFrameError, NonQuasiInertialFrameError, ReferenceFrame, TryBodyFixed,
23+
TryQuasiInertial, TryRotateTo,
24+
},
1925
transformations::{
26+
Rotation,
2027
iau::{IauFrameTransformationError, icrf_to_iau},
2128
iers::{cirf_to_tirf, icrf_to_cirf, tirf_to_itrf},
22-
Rotation,
2329
},
2430
};
2531

@@ -269,4 +275,4 @@ mod tests {
269275
assert_close!(r_act, r_exp, 1e-8);
270276
assert_close!(v_act, v_exp, 1e-5);
271277
}
272-
}
278+
}

crates/lox-frames/src/frames.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
use lox_bodies::RotationalElements;
1010

11-
use crate::traits::{ReferenceFrame, QuasiInertial, BodyFixed};
11+
use crate::traits::{BodyFixed, QuasiInertial, ReferenceFrame};
1212

1313
#[derive(Clone, Copy, Debug, PartialEq, Eq, Ord, PartialOrd)]
1414
pub struct Icrf;
@@ -107,4 +107,4 @@ where
107107
fn is_rotating(&self) -> bool {
108108
true
109109
}
110-
}
110+
}

crates/lox-frames/src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
77
*/
88

9-
// Module declarations
109
pub mod dynamic;
1110
pub mod frames;
1211
pub mod traits;
@@ -15,11 +14,9 @@ pub mod transformations;
1514
#[cfg(feature = "python")]
1615
pub mod python;
1716

18-
// Re-export commonly used types
1917
pub use dynamic::{DynFrame, UnknownFrameError};
20-
pub use frames::{Icrf, Cirf, Tirf, Itrf, Iau};
18+
pub use frames::{Cirf, Iau, Icrf, Itrf, Tirf};
2119
pub use traits::{
22-
ReferenceFrame, QuasiInertial, BodyFixed,
23-
TryQuasiInertial, TryBodyFixed, TryRotateTo,
24-
NonQuasiInertialFrameError, NonBodyFixedFrameError
25-
};
20+
BodyFixed, NonBodyFixedFrameError, NonQuasiInertialFrameError, QuasiInertial, ReferenceFrame,
21+
TryBodyFixed, TryQuasiInertial, TryRotateTo,
22+
};

crates/lox-frames/src/python.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
77
*/
88

9-
use pyo3::{PyErr, PyResult, exceptions::PyValueError, pyclass, pymethods};
109
use crate::{
1110
dynamic::{DynFrame, UnknownFrameError},
11+
traits::ReferenceFrame,
1212
transformations::iau::IauFrameTransformationError,
13-
traits::ReferenceFrame
1413
};
14+
use pyo3::{PyErr, PyResult, exceptions::PyValueError, pyclass, pymethods};
1515

1616
impl From<UnknownFrameError> for PyErr {
1717
fn from(err: UnknownFrameError) -> Self {
@@ -49,4 +49,4 @@ impl PyFrame {
4949
fn abbreviation(&self) -> String {
5050
self.0.abbreviation()
5151
}
52-
}
52+
}

crates/lox-frames/src/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ pub trait TryRotateTo<T: TimeScale, R: ReferenceFrame, P> {
5858
time: Time<T>,
5959
provider: Option<&P>,
6060
) -> Result<Rotation, Self::Error>;
61-
}
61+
}

crates/lox-frames/src/transformations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ pub mod rotations;
1313
// Re-export commonly used items
1414
pub use iau::IauFrameTransformationError;
1515
pub use iers::{cirf_to_tirf, icrf_to_cirf, tirf_to_itrf};
16-
pub use rotations::Rotation;
16+
pub use rotations::Rotation;

crates/lox-orbits/src/analysis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ use std::f64::consts::PI;
2727
use thiserror::Error;
2828

2929
use crate::events::{Window, find_windows, intersect_windows};
30-
use lox_frames::{DynFrame, Iau, Icrf, TryRotateTo};
3130
use crate::ground::{DynGroundLocation, DynGroundPropagator, GroundLocation, Observables};
3231
use crate::states::{DynState, State};
3332
use crate::trajectories::{DynTrajectory, Trajectory};
33+
use lox_frames::{DynFrame, Iau, Icrf, TryRotateTo};
3434

3535
// Salvatore Alfano, David Negron, Jr., and Jennifer L. Moore
3636
// Rapid Determination of Satellite Visibility Periods

crates/lox-orbits/src/elements.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ use lox_time::deltas::TimeDelta;
1616
use lox_time::time_scales::{DynTimeScale, TimeScale};
1717
use lox_time::{DynTime, Time};
1818

19-
use lox_frames::{DynFrame, Icrf, ReferenceFrame};
2019
use crate::states::State;
20+
use lox_frames::{DynFrame, Icrf, ReferenceFrame};
2121

2222
#[derive(Debug, Clone, PartialEq)]
2323
pub struct KeplerianElements {

crates/lox-orbits/src/ground.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99
use std::f64::consts::FRAC_PI_2;
1010

11-
use lox_frames::{DynFrame, Iau, Icrf, TryRotateTo};
1211
use crate::propagators::Propagator;
1312
use crate::states::{DynState, State};
1413
use crate::trajectories::{DynTrajectory, Trajectory, TrajectoryError};
1514
use glam::{DMat3, DVec3};
1615
use lox_bodies::{DynOrigin, RotationalElements, Spheroid, TrySpheroid};
16+
use lox_frames::{DynFrame, Iau, Icrf, TryRotateTo};
1717
use lox_math::types::units::Radians;
1818
use lox_time::time_scales::TryToScale;
1919
use lox_time::time_scales::{Tdb, TimeScale};

crates/lox-orbits/src/propagators.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use lox_time::Time;
33
use lox_time::time_scales::TimeScale;
44

55
use crate::trajectories::TrajectoryError;
6-
use lox_frames::ReferenceFrame;
76
use crate::{states::State, trajectories::Trajectory};
7+
use lox_frames::ReferenceFrame;
88

99
pub mod semi_analytical;
1010
pub mod sgp4;

0 commit comments

Comments
 (0)