chore: replace all #[snafu(display(...))] with regular doc comments ///
This commit is contained in:
@@ -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 },
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user