Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Aug 2, 2024
1 parent f917080 commit 130a200
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/mc/results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ where
let mut utc_epoch = StringBuilder::new();
let mut idx_col = Int32Builder::new();
for (sno, s) in all_states.iter().enumerate() {
utc_epoch.append_value(&s.epoch().to_time_scale(TimeScale::UTC).to_isoformat());
utc_epoch.append_value(s.epoch().to_time_scale(TimeScale::UTC).to_isoformat());

// Copy this a bunch of times because all columns must have the same length
idx_col.append_value(run_indexes[sno]);
Expand Down
4 changes: 2 additions & 2 deletions src/md/trajectory/traj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ where
// Epochs
let mut utc_epoch = StringBuilder::new();
for s in &states {
utc_epoch.append_value(&s.epoch().to_time_scale(TimeScale::UTC).to_isoformat());
utc_epoch.append_value(s.epoch().to_time_scale(TimeScale::UTC).to_isoformat());
}
record.push(Arc::new(utc_epoch.finish()));

Expand Down Expand Up @@ -459,7 +459,7 @@ where
// Epochs (both match for self and others)
let mut utc_epoch = StringBuilder::new();
for s in &self_states {
utc_epoch.append_value(&s.epoch().to_time_scale(TimeScale::UTC).to_isoformat());
utc_epoch.append_value(s.epoch().to_time_scale(TimeScale::UTC).to_isoformat());
}
record.push(Arc::new(utc_epoch.finish()));

Expand Down
2 changes: 1 addition & 1 deletion src/od/msr/arc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ where
// Epochs
let mut utc_epoch = StringBuilder::new();
for m in &measurements {
utc_epoch.append_value(&m.1.epoch().to_time_scale(TimeScale::UTC).to_isoformat());
utc_epoch.append_value(m.1.epoch().to_time_scale(TimeScale::UTC).to_isoformat());
}
record.push(Arc::new(utc_epoch.finish()));

Expand Down
2 changes: 1 addition & 1 deletion src/od/process/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ where
// Epochs
let mut utc_epoch = StringBuilder::new();
for s in &estimates {
utc_epoch.append_value(&s.epoch().to_time_scale(TimeScale::UTC).to_isoformat());
utc_epoch.append_value(s.epoch().to_time_scale(TimeScale::UTC).to_isoformat());
}
record.push(Arc::new(utc_epoch.finish()));

Expand Down
6 changes: 3 additions & 3 deletions src/propagators/error_ctrl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ impl ErrorCtrl for RSSStep {
/// > This is a more stringent error control method than [`rss_step`] that is often used as the default in other software such as STK.
/// > If you set [the] accuracy to a very small number, 1e-13 for example, and set the error control to [`rss_step`], integrator
/// > performance will be poor, for little if any improvement in the accuracy of the orbit integration.
/// For more best practices of these integrators (which clone those in GMAT), please refer to the
/// [GMAT reference](https://github.com/ChristopherRabotin/GMAT/blob/37201a6290e7f7b941bc98ee973a527a5857104b/doc/help/src/Resource_NumericalIntegrators.xml#L1292).
/// (Source)[https://github.com/ChristopherRabotin/GMAT/blob/37201a6290e7f7b941bc98ee973a527a5857104b/src/base/forcemodel/ODEModel.cpp#L3004]
/// > For more best practices of these integrators (which clone those in GMAT), please refer to the
/// > [GMAT reference](https://github.com/ChristopherRabotin/GMAT/blob/37201a6290e7f7b941bc98ee973a527a5857104b/doc/help/src/Resource_NumericalIntegrators.xml#L1292).
/// > (Source)[https://github.com/ChristopherRabotin/GMAT/blob/37201a6290e7f7b941bc98ee973a527a5857104b/src/base/forcemodel/ODEModel.cpp#L3004]
#[derive(Clone, Copy)]
#[allow(clippy::upper_case_acronyms)]
pub struct RSSState;
Expand Down

0 comments on commit 130a200

Please sign in to comment.