Skip to content

Commit

Permalink
Fix rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Feb 19, 2024
1 parent cf53174 commit cad7c26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
5 changes: 4 additions & 1 deletion rustcoalescence/scenarios/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ use necsim_impls_no_std::{
pub mod almost_infinite;
#[cfg(feature = "non-spatial")]
pub mod non_spatial;
#[cfg(any(feature = "spatially-explicit-uniform-turnover", feature = "spatially-explicit-turnover-map"))]
#[cfg(any(
feature = "spatially-explicit-uniform-turnover",
feature = "spatially-explicit-turnover-map"
))]
pub mod spatially_explicit;
#[cfg(feature = "spatially-implicit")]
pub mod spatially_implicit;
Expand Down
20 changes: 6 additions & 14 deletions rustcoalescence/src/args/config/scenario.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,18 @@ pub enum Scenario {
#[cfg(feature = "spatially-explicit-uniform-turnover-scenario")]
#[serde(alias = "SpatiallyExplicit")]
SpatiallyExplicitUniformTurnover(
rustcoalescence_scenarios::spatially_explicit::SpatiallyExplicitUniformTurnoverArguments
rustcoalescence_scenarios::spatially_explicit::SpatiallyExplicitUniformTurnoverArguments,
),
#[cfg(feature = "spatially-explicit-turnover-map-scenario")]
SpatiallyExplicitTurnoverMap(
rustcoalescence_scenarios::spatially_explicit::SpatiallyExplicitTurnoverMapArguments
rustcoalescence_scenarios::spatially_explicit::SpatiallyExplicitTurnoverMapArguments,
),
#[cfg(feature = "non-spatial-scenario")]
NonSpatial(
rustcoalescence_scenarios::non_spatial::NonSpatialArguments
),
NonSpatial(rustcoalescence_scenarios::non_spatial::NonSpatialArguments),
#[cfg(feature = "spatially-implicit-scenario")]
SpatiallyImplicit(
rustcoalescence_scenarios::spatially_implicit::SpatiallyImplicitArguments
),
SpatiallyImplicit(rustcoalescence_scenarios::spatially_implicit::SpatiallyImplicitArguments),
#[cfg(feature = "almost-infinite-scenario")]
AlmostInfinite(
rustcoalescence_scenarios::almost_infinite::AlmostInfiniteArguments
),
AlmostInfinite(rustcoalescence_scenarios::almost_infinite::AlmostInfiniteArguments),
#[cfg(feature = "wrapping-noise-scenario")]
WrappingNoise(
rustcoalescence_scenarios::wrapping_noise::WrappingNoiseArguments
),
WrappingNoise(rustcoalescence_scenarios::wrapping_noise::WrappingNoiseArguments),
}

0 comments on commit cad7c26

Please sign in to comment.