Skip to content

Commit e950543

Browse files
committed
Review: remove unneeded cfgs
1 parent 01c3e1f commit e950543

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/seq/index.rs

+1-11
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,6 @@ where
239239
panic!("`amount` of samples must be less than or equal to `length`");
240240
}
241241
if length > (u32::MAX as usize) {
242-
#[cfg(target_pointer_width = "32")]
243-
unreachable!();
244-
245242
// We never want to use inplace here, but could use floyd's alg
246243
// Lazy version: always use the cache alg.
247244
#[cfg(target_pointer_width = "64")]
@@ -303,15 +300,8 @@ where
303300
X: Into<f64>,
304301
{
305302
if length > (u32::MAX as usize) {
306-
#[cfg(target_pointer_width = "32")]
307-
unreachable!();
308-
309303
#[cfg(target_pointer_width = "64")]
310-
{
311-
let amount = amount as u64;
312-
let length = length as u64;
313-
sample_efraimidis_spirakis(rng, length, weight, amount)
314-
}
304+
sample_efraimidis_spirakis(rng, length as u64, weight, amount as u64)
315305
} else {
316306
assert!(amount <= u32::MAX as usize);
317307
let amount = amount as u32;

0 commit comments

Comments
 (0)