Skip to content

Commit 414c944

Browse files
committed
style: some formatting changes
1 parent 60ccdbd commit 414c944

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/chain.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ use nuts_storable::{HasDims, Storable};
99
use rand::Rng;
1010

1111
use crate::{
12+
Math, NutsError,
1213
hamiltonian::{Hamiltonian, Point},
13-
nuts::{draw, Collector, NutsOptions, SampleInfo},
14+
nuts::{Collector, NutsOptions, SampleInfo, draw},
1415
sampler::Progress,
1516
sampler_stats::{SamplerStats, StatsDims},
1617
state::State,
17-
Math, NutsError,
1818
};
1919

2020
use anyhow::Result;

src/euclidean_hamiltonian.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ use std::sync::Arc;
44
use nuts_derive::Storable;
55
use nuts_storable::HasDims;
66

7+
use crate::LogpError;
78
use crate::hamiltonian::{Direction, DivergenceInfo, Hamiltonian, LeapfrogResult, Point};
89
use crate::mass_matrix::MassMatrix;
910
use crate::math_base::Math;
1011
use crate::nuts::{Collector, NutsError};
1112
use crate::sampler_stats::{SamplerStats, StatsDims};
1213
use crate::state::{State, StatePool};
13-
use crate::LogpError;
1414

1515
pub struct EuclideanHamiltonian<M: Math, Mass: MassMatrix<M>> {
1616
pub(crate) mass_matrix: Mass,

src/hamiltonian.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ use std::sync::Arc;
33
use rand_distr::{Distribution, StandardUniform};
44

55
use crate::{
6+
Math, NutsError,
67
nuts::Collector,
78
sampler_stats::SamplerStats,
89
state::{State, StatePool},
9-
Math, NutsError,
1010
};
1111

1212
/// Details about a divergence that might have occured during sampling

src/nuts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ mod tests {
315315
use rand::rng;
316316

317317
use crate::{
318-
adapt_strategy::test_logps::NormalLogp, cpu_math::CpuMath, sampler::DiagGradNutsSettings,
319-
Chain, Settings,
318+
Chain, Settings, adapt_strategy::test_logps::NormalLogp, cpu_math::CpuMath,
319+
sampler::DiagGradNutsSettings,
320320
};
321321

322322
#[test]

0 commit comments

Comments
 (0)