Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Jun 6, 2024
1 parent 0534eb8 commit 465ed80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,7 @@ impl<'de> serde::Deserialize<'de> for Log2U16 {
type Value = Log2U16;

fn expecting(&self, fmt: &mut alloc::fmt::Formatter) -> alloc::fmt::Result {
fmt.write_str(
"an integer in 2^{0; ...; 15} or its base-two scientific notation string",
)
fmt.write_str("an integer in 2^{0..=15} or its base-two scientific notation string")
}

fn visit_u64<E: serde::de::Error>(self, v: u64) -> Result<Self::Value, E> {
Expand Down
10 changes: 8 additions & 2 deletions rustcoalescence/src/args/config/scenario.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ pub enum Scenario {
AlmostInfiniteNormalDispersal(rustcoalescence_scenarios::almost_infinite::normal::AlmostInfiniteNormalDispersalArguments),
#[cfg(feature = "almost-infinite-clark2dt-dispersal-scenario")]
AlmostInfiniteClark2DtDispersal(rustcoalescence_scenarios::almost_infinite::clark2dt::AlmostInfiniteClark2DtDispersalArguments),
#[cfg(feature = "almost-infinite-normal-dispersal-scenario")]
#[cfg(all(
feature = "almost-infinite-normal-dispersal-scenario",
feature = "almost-infinite-downscaled-scenario",
))]
AlmostInfiniteDownscaledNormalDispersal(rustcoalescence_scenarios::almost_infinite::downscaled::AlmostInfiniteDownscaledArguments<rustcoalescence_scenarios::almost_infinite::normal::AlmostInfiniteNormalDispersalScenario>),
#[cfg(feature = "almost-infinite-clark2dt-dispersal-scenario")]
#[cfg(all(
feature = "almost-infinite-clark2dt-dispersal-scenario",
feature = "almost-infinite-downscaled-scenario",
))]
AlmostInfiniteDownscaledClark2DtDispersal(rustcoalescence_scenarios::almost_infinite::downscaled::AlmostInfiniteDownscaledArguments<rustcoalescence_scenarios::almost_infinite::clark2dt::AlmostInfiniteClark2DtDispersalScenario>),
#[cfg(feature = "wrapping-noise-scenario")]
WrappingNoise(rustcoalescence_scenarios::wrapping_noise::WrappingNoiseArguments),
Expand Down

0 comments on commit 465ed80

Please sign in to comment.