Commit 2865f09
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments