Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Feb 9, 2024
1 parent 06fe3d8 commit fbdf769
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rand_distr/src/weighted_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ mod test {
let tree = WeightedTreeIndex::<f64>::new(&[]).unwrap();
assert_eq!(
tree.try_sample(&mut rng).unwrap_err(),
WeightError::InvalidInput
WeightError::InsufficientNonZero
);
}

Expand Down
2 changes: 1 addition & 1 deletion rand_distr/tests/pdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#![allow(clippy::float_cmp)]

use average::Histogram;
use rand::{Rng, SeedableRng};
use rand::Rng;
use rand_distr::{Normal, SkewNormal};

const HIST_LEN: usize = 100;
Expand Down
1 change: 1 addition & 0 deletions src/seq/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub mod index;

mod increasing_uniform;

#[cfg(feature = "alloc")]
#[doc(no_inline)]
pub use crate::distributions::WeightError;

Expand Down

0 comments on commit fbdf769

Please sign in to comment.