Skip to content

Commit

Permalink
more tidying up. No warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmayer committed Nov 12, 2024
1 parent 7d67aaa commit 05df453
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ use crate::codec::*;
use crate::sample::*;
use std::marker::PhantomData;
use rand::{
Rng,
prelude::Distribution,
distributions::{uniform::SampleUniform, Standard}
distributions::Standard
};
use num_traits::Bounded;

pub trait Encoding {
type T;
Expand Down Expand Up @@ -93,6 +91,9 @@ pub fn decode<E: Encoding, W: Width>(input: &[u8], n: usize, output: &mut [E::T]
E::decode::<W>(input, n, output)
}

#[cfg(test)]
use rand::Rng;

#[cfg(test)]
fn test_enc_dec_generic<T, E, WidthType>()
where
Expand Down

0 comments on commit 05df453

Please sign in to comment.