3131}
3232
3333/// Error type returned from `DirchletFromGamma::new`.
34- #[ cfg_attr( doc_cfg, doc( cfg( feature = "alloc" ) ) ) ]
3534#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
3635enum DirichletFromGammaError {
3736 /// Gamma::new(a, 1) failed.
@@ -104,7 +103,6 @@ where
104103}
105104
106105/// Error type returned from `DirchletFromBeta::new`.
107- #[ cfg_attr( doc_cfg, doc( cfg( feature = "alloc" ) ) ) ]
108106#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
109107enum DirichletFromBetaError {
110108 /// Beta::new(a, b) failed.
@@ -203,7 +201,6 @@ where
203201/// let samples = dirichlet.sample(&mut rand::thread_rng());
204202/// println!("{:?} is from a Dirichlet([1.0, 2.0, 3.0]) distribution", samples);
205203/// ```
206- #[ cfg_attr( doc_cfg, doc( cfg( feature = "alloc" ) ) ) ]
207204#[ cfg_attr( feature = "serde_with" , serde_as) ]
208205#[ derive( Clone , Debug , PartialEq ) ]
209206pub struct Dirichlet < F , const N : usize >
@@ -217,7 +214,6 @@ where
217214}
218215
219216/// Error type returned from `Dirchlet::new`.
220- #[ cfg_attr( doc_cfg, doc( cfg( feature = "alloc" ) ) ) ]
221217#[ derive( Clone , Copy , Debug , PartialEq , Eq ) ]
222218pub enum Error {
223219 /// `alpha.len() < 2`.
@@ -257,7 +253,6 @@ impl fmt::Display for Error {
257253}
258254
259255#[ cfg( feature = "std" ) ]
260- #[ cfg_attr( doc_cfg, doc( cfg( feature = "std" ) ) ) ]
261256impl std:: error:: Error for Error { }
262257
263258impl < F , const N : usize > Dirichlet < F , N >
0 commit comments