Skip to content

Commit

Permalink
Remove probably unneeded #[cfg(feature = "std")]
Browse files Browse the repository at this point in the history
  • Loading branch information
robamler committed Dec 18, 2022
1 parent 3648102 commit 01a5259
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/stream/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2441,7 +2441,6 @@ where
/// TODO: should also return an error if support is too large to support leaky
/// distribution
#[allow(clippy::result_unit_err)]
#[cfg(feature = "std")]
pub fn from_symbols_and_floating_point_probabilities<F>(
symbols: &[Symbol],
probabilities: &[F],
Expand Down Expand Up @@ -2979,7 +2978,6 @@ where
/// [`NonContiguousCategoricalDecoderModel::from_symbols_and_floating_point_probabilities`]
/// except that it constructs an [`EncoderModel`] rather than a [`DecoderModel`].
#[allow(clippy::result_unit_err)]
#[cfg(feature = "std")]
pub fn from_symbols_and_floating_point_probabilities<F>(
symbols: impl IntoIterator<Item = Symbol>,
probabilities: &[F],
Expand Down Expand Up @@ -3130,7 +3128,6 @@ where
}
}

#[cfg(feature = "std")]
struct Slot<Probability> {
original_index: usize,
prob: f64,
Expand Down Expand Up @@ -3186,7 +3183,6 @@ where
Ok(symbols)
}

#[cfg(feature = "std")]
fn optimize_leaky_categorical<Probability, F, const PRECISION: usize>(
probabilities: &[F],
) -> Result<Vec<Slot<Probability>>, ()>
Expand Down Expand Up @@ -3422,7 +3418,6 @@ where
///
/// TODO: example
#[allow(clippy::result_unit_err)]
#[cfg(feature = "std")]
pub fn from_symbols_and_floating_point_probabilities<F>(
symbols: &[Symbol],
probabilities: &[F],
Expand Down Expand Up @@ -3537,7 +3532,6 @@ where
///
/// TODO: example
#[allow(clippy::result_unit_err)]
#[cfg(feature = "std")]
pub fn from_floating_point_probabilities_contiguous<F>(probabilities: &[F]) -> Result<Self, ()>
where
F: FloatCore + core::iter::Sum<F> + Into<f64>,
Expand Down

0 comments on commit 01a5259

Please sign in to comment.