Skip to content

Commit 2865f09

Browse files
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. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d013928 commit 2865f09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cmd/pick.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl PickArgs {
4444
/// `pick` handler
4545
pub async fn run(&self) -> Result<(), Error> {
4646
use crate::cache::Cache;
47-
use rand::Rng;
47+
use rand::RngExt;
4848

4949
let cache = Cache::new()?;
5050
let mut problems = cache.get_problems()?;

0 commit comments

Comments
 (0)