Skip to content

Commit c13243d

Browse files
committed
Clean up formatting with cargo fmt
1 parent dad7a67 commit c13243d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

sim/src/input_modeling/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
//! a system around "thinning" for non-stationary model behaviors, and a
55
//! structure around random number generation.
66
7+
pub mod dynamic_rng;
78
pub mod random_variable;
89
pub mod thinning;
9-
pub mod dynamic_rng;
1010

11+
pub use dynamic_rng::{dyn_rng, some_dyn_rng};
1112
pub use random_variable::Boolean as BooleanRandomVariable;
1213
pub use random_variable::Continuous as ContinuousRandomVariable;
1314
pub use random_variable::Discrete as DiscreteRandomVariable;
1415
pub use random_variable::Index as IndexRandomVariable;
1516
pub use thinning::Thinning;
16-
pub use dynamic_rng::{dyn_rng, some_dyn_rng};

sim/src/simulator/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use std::f64::INFINITY;
1818

1919
use serde::{Deserialize, Serialize};
2020

21-
use crate::input_modeling::dynamic_rng::SimulationRng;
2221
use crate::input_modeling::dyn_rng;
22+
use crate::input_modeling::dynamic_rng::SimulationRng;
2323
use crate::models::{DevsModel, Model, ModelMessage, ModelRecord, Reportable};
2424
use crate::utils::errors::SimulationError;
2525
use crate::utils::set_panic_hook;

sim/src/utils/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ pub fn evaluate_polynomial(coefficients: &[f64], x: f64) -> Result<f64, Simulati
4040
Ok(horner_fold(&h_coeff, x))
4141
}
4242

43-
4443
/// Horner Algorithm for polynomial evaluation
4544
/// It is expected that the coefficients are ordered from least significant to most significant.
4645
/// For example for the polynomial:

0 commit comments

Comments
 (0)