about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-26 14:51:37 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-26 15:11:05 +0000
commit169e731f53788c21b1c864fb67e4a574f95f0026 (patch)
treece5c14c5287e7b77951347374d73af75037734c6
parentb491494a20bc1cde315c3d51055122e957188492 (diff)
downloadrust-169e731f53788c21b1c864fb67e4a574f95f0026.tar.gz
rust-169e731f53788c21b1c864fb67e4a574f95f0026.zip
Fix unused import in coretests on wasm32
-rw-r--r--library/coretests/tests/slice.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/coretests/tests/slice.rs b/library/coretests/tests/slice.rs
index 1c5c8a9ebf2..fe356dcc43c 100644
--- a/library/coretests/tests/slice.rs
+++ b/library/coretests/tests/slice.rs
@@ -5,8 +5,6 @@ use core::num::NonZero;
 use core::ops::{Range, RangeInclusive};
 use core::slice;
 
-use rand::seq::IndexedRandom;
-
 #[test]
 fn test_position() {
     let b = [1, 2, 3, 5, 5];
@@ -1810,6 +1808,7 @@ fn select_nth_unstable() {
     use core::cmp::Ordering::{Equal, Greater, Less};
 
     use rand::Rng;
+    use rand::seq::IndexedRandom;
 
     let mut rng = crate::test_rng();