chore: replace all #[snafu(display(...))] with regular doc comments ///

This commit is contained in:
J / Jacob Babich
2026-07-15 13:48:21 -04:00
parent 4eb8a752cc
commit a09a97d06d
4 changed files with 8 additions and 7 deletions

View File

@@ -41,9 +41,10 @@ impl From<MapKey> for Arbitrary {
#[derive(Debug, Snafu)]
pub enum MapKeyFromArbitraryError {
#[snafu(display("floats aren't supported as map keys yet. got {value:?}"))]
/// floats aren't supported as map keys yet. got {value:?}
FloatNotSupported { value: FiniteF64 },
#[snafu(display("a map cannot be a map key. got {value:?}"))]
/// a map cannot be a map key. got {value:?}
MapCannotBeAMapKey { value: Map },
}

View File

@@ -4,8 +4,8 @@ use snafu::Snafu;
#[derive(Debug, Clone, derive_more::Into)]
pub struct FiniteF64(f64);
/// {value:?} is not finite
#[derive(Debug, Snafu)]
#[snafu(display("{value:?} is not finite"))]
pub struct NotFinite {
value: f64,
}