From 109730f4272962f25fc8746ccb8d41a1e735de6e Mon Sep 17 00:00:00 2001 From: Andrew Tawfeek Date: Mon, 1 Jun 2026 22:29:36 -0700 Subject: [PATCH] fix: import rand::RngExt for random_range in pick The rand 0.10 bump (#220) moved `random_range` off the `Rng` trait into the new `RngExt` trait, so `src/cmd/pick.rs` no longer compiles on `main`: error[E0599]: no method named `random_range` found for struct `ThreadRng` help: trait `RngExt` which provides `random_range` is implemented but not in scope; perhaps you want to import it Import `RngExt` instead of `Rng` in the `pick` handler. --- src/cmd/pick.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/pick.rs b/src/cmd/pick.rs index a881d94..9297a93 100644 --- a/src/cmd/pick.rs +++ b/src/cmd/pick.rs @@ -44,7 +44,7 @@ impl PickArgs { /// `pick` handler pub async fn run(&self) -> Result<(), Error> { use crate::cache::Cache; - use rand::Rng; + use rand::RngExt; let cache = Cache::new()?; let mut problems = cache.get_problems()?;