@@ -2441,7 +2441,6 @@ where
24412441 /// TODO: should also return an error if support is too large to support leaky
24422442 /// distribution
24432443 #[ allow( clippy:: result_unit_err) ]
2444- #[ cfg( feature = "std" ) ]
24452444 pub fn from_symbols_and_floating_point_probabilities < F > (
24462445 symbols : & [ Symbol ] ,
24472446 probabilities : & [ F ] ,
@@ -2979,7 +2978,6 @@ where
29792978 /// [`NonContiguousCategoricalDecoderModel::from_symbols_and_floating_point_probabilities`]
29802979 /// except that it constructs an [`EncoderModel`] rather than a [`DecoderModel`].
29812980 #[ allow( clippy:: result_unit_err) ]
2982- #[ cfg( feature = "std" ) ]
29832981 pub fn from_symbols_and_floating_point_probabilities < F > (
29842982 symbols : impl IntoIterator < Item = Symbol > ,
29852983 probabilities : & [ F ] ,
@@ -3130,7 +3128,6 @@ where
31303128 }
31313129}
31323130
3133- #[ cfg( feature = "std" ) ]
31343131struct Slot < Probability > {
31353132 original_index : usize ,
31363133 prob : f64 ,
@@ -3186,7 +3183,6 @@ where
31863183 Ok ( symbols)
31873184}
31883185
3189- #[ cfg( feature = "std" ) ]
31903186fn optimize_leaky_categorical < Probability , F , const PRECISION : usize > (
31913187 probabilities : & [ F ] ,
31923188) -> Result < Vec < Slot < Probability > > , ( ) >
@@ -3422,7 +3418,6 @@ where
34223418 ///
34233419 /// TODO: example
34243420 #[ allow( clippy:: result_unit_err) ]
3425- #[ cfg( feature = "std" ) ]
34263421 pub fn from_symbols_and_floating_point_probabilities < F > (
34273422 symbols : & [ Symbol ] ,
34283423 probabilities : & [ F ] ,
@@ -3537,7 +3532,6 @@ where
35373532 ///
35383533 /// TODO: example
35393534 #[ allow( clippy:: result_unit_err) ]
3540- #[ cfg( feature = "std" ) ]
35413535 pub fn from_floating_point_probabilities_contiguous < F > ( probabilities : & [ F ] ) -> Result < Self , ( ) >
35423536 where
35433537 F : FloatCore + core:: iter:: Sum < F > + Into < f64 > ,
0 commit comments