Skip to content

Commit f197fc3

Browse files
author
Ivo Georgiev
committed
util: remove take_one, does not seem to be used
1 parent bdb1167 commit f197fc3

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

primitives/src/util.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
pub mod tests {
2-
use rand::seq::SliceRandom;
3-
use rand::thread_rng;
4-
52
pub mod prep_db;
63
pub mod time;
7-
8-
#[inline]
9-
pub fn take_one<'a, T: ?Sized>(list: &[&'a T]) -> &'a T {
10-
let mut rng = thread_rng();
11-
list.choose(&mut rng).expect("take_one got empty list")
12-
}
134
}
145

156
pub mod serde {

0 commit comments

Comments
 (0)